Skip to content

Commit b866e36

Browse files
committed
Replace ffi constants with libc in epoll
1 parent 323b792 commit b866e36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sys/epoll.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ libc_bitflags!(
2828
);
2929

3030
#[derive(Clone, Copy, Eq, PartialEq)]
31-
#[repr(C)]
31+
#[repr(i32)]
3232
pub enum EpollOp {
33-
EpollCtlAdd = 1,
34-
EpollCtlDel = 2,
35-
EpollCtlMod = 3
33+
EpollCtlAdd = libc::EPOLL_CTL_ADD,
34+
EpollCtlDel = libc::EPOLL_CTL_DEL,
35+
EpollCtlMod = libc::EPOLL_CTL_MOD,
3636
}
3737

3838
libc_bitflags!{

0 commit comments

Comments
 (0)