Skip to content

Commit b7cbd8a

Browse files
committed
fix 32bit mac build error
1 parent 744c462 commit b7cbd8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/rt/uv/uvio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use rt::uv::idle::IdleWatcher;
3131
use rt::uv::net::{UvIpv4SocketAddr, UvIpv6SocketAddr};
3232
use unstable::sync::Exclusive;
3333
use super::super::io::support::PathLike;
34-
use libc::{lseek, c_long, O_CREAT, O_APPEND, O_TRUNC, O_RDWR, O_RDONLY, O_WRONLY,
34+
use libc::{lseek, off_t, O_CREAT, O_APPEND, O_TRUNC, O_RDWR, O_RDONLY, O_WRONLY,
3535
S_IRUSR, S_IWUSR};
3636
use rt::io::{FileMode, FileAccess, OpenOrCreate, Open, Create,
3737
CreateOrTruncate, Append, Truncate, Read, Write, ReadWrite};
@@ -1148,7 +1148,7 @@ impl UvFileStream {
11481148
Result<u64, IoError>{
11491149
#[fixed_stack_segment]; #[inline(never)];
11501150
unsafe {
1151-
match lseek((*self.fd), pos as c_long, whence) {
1151+
match lseek((*self.fd), pos as off_t, whence) {
11521152
-1 => {
11531153
Err(IoError {
11541154
kind: OtherIoError,

0 commit comments

Comments
 (0)