diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-08-10 12:25:27 -0700 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2017-08-16 19:36:51 -0700 |
commit | 15e682ccbbc499af15b44d28d126576c61ae75bb (patch) | |
tree | 6cd47d8b688a34e936f6f6b5c7d0b5b1bd096c82 | |
parent | c66cd3c2d74483713b2acb32ac6398668fe139ad (diff) | |
download | nix-15e682ccbbc499af15b44d28d126576c61ae75bb.zip |
Replace ffi constants with libc in epoll
-rw-r--r-- | src/sys/epoll.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sys/epoll.rs b/src/sys/epoll.rs index 2618b70a..5ab766dc 100644 --- a/src/sys/epoll.rs +++ b/src/sys/epoll.rs @@ -28,11 +28,11 @@ libc_bitflags!( ); #[derive(Clone, Copy, Eq, PartialEq)] -#[repr(C)] +#[repr(i32)] pub enum EpollOp { - EpollCtlAdd = 1, - EpollCtlDel = 2, - EpollCtlMod = 3 + EpollCtlAdd = libc::EPOLL_CTL_ADD, + EpollCtlDel = libc::EPOLL_CTL_DEL, + EpollCtlMod = libc::EPOLL_CTL_MOD, } libc_bitflags!{ |