Skip to content

Commit

Permalink
Fix build on i686 by using libc::suseseconds_t instead of i64
Browse files Browse the repository at this point in the history
dcoffill authored and whitequark committed Aug 2, 2017
1 parent bc0e3c3 commit d03ea64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phy/sys/tap_interface.rs
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ impl TapInterfaceDesc {
libc::FD_ZERO(&mut writefds);
let mut exceptfds = mem::uninitialized::<libc::fd_set>();
libc::FD_ZERO(&mut exceptfds);
let mut timeout = libc::timeval { tv_sec: 0, tv_usec: (ms * 1_000) as i64 };
let mut timeout = libc::timeval { tv_sec: 0, tv_usec: (ms * 1_000) as libc::suseconds_t };
let res = libc::select(self.lower + 1, &mut readfds, &mut writefds, &mut exceptfds,
&mut timeout);
if res == -1 { return Err(io::Error::last_os_error()) }

0 comments on commit d03ea64

Please sign in to comment.