diff options
author | David Henningsson <david.henningsson@canonical.com> | 2015-08-07 09:00:38 +0200 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-08-10 11:09:43 -0700 |
commit | 23dc9e01e191618ea5f90d2b8aed67f57e67652d (patch) | |
tree | 91e292218d2bcdf89616d01a787a4b91b6802492 /src | |
parent | d1d345514a381e56385fde9eca987893b8be4c17 (diff) | |
download | nix-23dc9e01e191618ea5f90d2b8aed67f57e67652d.zip |
Make eventfds compile again
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/eventfd.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/eventfd.rs b/src/sys/eventfd.rs index e8e2bd23..80f7f47c 100644 --- a/src/sys/eventfd.rs +++ b/src/sys/eventfd.rs @@ -1,5 +1,5 @@ use libc; -use fcntl::Fd; +use std::os::unix::io::RawFd; use {Error, Result}; bitflags!( @@ -18,7 +18,7 @@ mod ffi { } } -pub fn eventfd(initval: usize, flags: EventFdFlag) -> Result<Fd> { +pub fn eventfd(initval: usize, flags: EventFdFlag) -> Result<RawFd> { unsafe { let res = ffi::eventfd(initval as libc::c_uint, flags.bits()); @@ -26,6 +26,6 @@ pub fn eventfd(initval: usize, flags: EventFdFlag) -> Result<Fd> { return Err(Error::last()); } - Ok(res as Fd) + Ok(res as RawFd) } } |