Skip to content

Commit 23dc9e0

Browse files
David Henningssoncarllerche
authored andcommitted
Make eventfds compile again
1 parent d1d3455 commit 23dc9e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sys/eventfd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use libc;
2-
use fcntl::Fd;
2+
use std::os::unix::io::RawFd;
33
use {Error, Result};
44

55
bitflags!(
@@ -18,14 +18,14 @@ mod ffi {
1818
}
1919
}
2020

21-
pub fn eventfd(initval: usize, flags: EventFdFlag) -> Result<Fd> {
21+
pub fn eventfd(initval: usize, flags: EventFdFlag) -> Result<RawFd> {
2222
unsafe {
2323
let res = ffi::eventfd(initval as libc::c_uint, flags.bits());
2424

2525
if res < 0 {
2626
return Err(Error::last());
2727
}
2828

29-
Ok(res as Fd)
29+
Ok(res as RawFd)
3030
}
3131
}

0 commit comments

Comments
 (0)