Fix build on i686 by using libc::suseseconds_t instead of i64

This commit is contained in:
David Coffill 2017-08-01 15:00:20 -07:00 committed by whitequark
parent e0d8fcfb72
commit 55ac6737b2
1 changed files with 1 additions and 1 deletions

View File

@ -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()) }