Skip to content

Commit 57fae07

Browse files
committed
EpollEvent is a packed struct
1 parent d873d94 commit 57fae07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/epoll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub enum EpollOp {
7575
EpollCtlMod = 3
7676
}
7777

78-
#[repr(C)]
78+
#[repr(C, packed)]
7979
pub struct EpollEvent {
8080
pub events: EpollEventKind,
8181
pub data: u64

0 commit comments

Comments
 (0)