about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJeff Olson <olson.jeffery@gmail.com>2013-08-22 17:26:02 -0700
committerJeff Olson <olson.jeffery@gmail.com>2013-08-22 17:26:02 -0700
commitb7cbd8a8fd69d7a2b540e3b4f9e808810fc1ddc0 (patch)
tree9b6b877cf9ddb35ecad4b9125ed1f4f0652e9c13 /src
parent744c46225e09bad815b7807ca660cbdbcf187443 (diff)
downloadrust-b7cbd8a8fd69d7a2b540e3b4f9e808810fc1ddc0.tar.gz
rust-b7cbd8a8fd69d7a2b540e3b4f9e808810fc1ddc0.zip
fix 32bit mac build error
Diffstat (limited to 'src')
-rw-r--r--src/libstd/rt/uv/uvio.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/uv/uvio.rs b/src/libstd/rt/uv/uvio.rs
index b1b5f9f919c..f794c0a2bec 100644
--- a/src/libstd/rt/uv/uvio.rs
+++ b/src/libstd/rt/uv/uvio.rs
@@ -31,7 +31,7 @@ use rt::uv::idle::IdleWatcher;
 use rt::uv::net::{UvIpv4SocketAddr, UvIpv6SocketAddr};
 use unstable::sync::Exclusive;
 use super::super::io::support::PathLike;
-use libc::{lseek, c_long, O_CREAT, O_APPEND, O_TRUNC, O_RDWR, O_RDONLY, O_WRONLY,
+use libc::{lseek, off_t, O_CREAT, O_APPEND, O_TRUNC, O_RDWR, O_RDONLY, O_WRONLY,
           S_IRUSR, S_IWUSR};
 use rt::io::{FileMode, FileAccess, OpenOrCreate, Open, Create,
             CreateOrTruncate, Append, Truncate, Read, Write, ReadWrite};
@@ -1148,7 +1148,7 @@ impl UvFileStream {
         Result<u64, IoError>{
         #[fixed_stack_segment]; #[inline(never)];
         unsafe {
-            match lseek((*self.fd), pos as c_long, whence) {
+            match lseek((*self.fd), pos as off_t, whence) {
                 -1 => {
                     Err(IoError {
                         kind: OtherIoError,