File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,23 @@ extern "C" {
1111}
1212
1313#[ derive( Debug ) ]
14+ #[ cfg( not( target_arch = "aarch64" ) ) ]
1415#[ repr( C , packed) ]
1516pub struct Event {
1617 pub ( crate ) events : u32 ,
1718 // Token to identify event
1819 pub ( crate ) epoll_data : usize ,
1920}
2021
22+ #[ derive( Debug ) ]
23+ #[ cfg( target_arch = "aarch64" ) ]
24+ #[ repr( C ) ]
25+ pub struct Event {
26+ pub ( crate ) events : u32 ,
27+ // Token to identify event
28+ pub ( crate ) epoll_data : usize ,
29+ }
30+
2131impl Event {
2232 pub fn token ( & self ) -> usize {
2333 self . epoll_data
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ fn handle_events(
4949
5050 loop {
5151 match streams[ index] . read ( & mut data) {
52- Ok ( n ) if n == 0 => {
52+ Ok ( 0 ) => {
5353 // FIX #4
5454 // `insert` returns false if the value already existed in the set. We
5555 // handle it here since we must be sure that the TcpStream is fully
You can’t perform that action at this time.
0 commit comments