Skip to content

Commit 433808a

Browse files
committed
hook more syscall
1 parent 47a9ccb commit 433808a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/net/event_loop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use std::time::Duration;
1818

1919
cfg_if::cfg_if! {
2020
if #[cfg(all(target_os = "linux", feature = "io_uring"))] {
21-
use libc::{epoll_event, iovec, msghdr, off_t, size_t, sockaddr, socklen_t};
2221
use dashmap::DashMap;
23-
use std::ffi::c_longlong;
22+
use libc::{epoll_event, iovec, mode_t, msghdr, off_t, size_t, sockaddr, socklen_t};
23+
use std::ffi::{c_char, c_longlong, c_uint};
2424
}
2525
}
2626

core/src/net/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use std::time::Duration;
1313

1414
cfg_if::cfg_if! {
1515
if #[cfg(all(target_os = "linux", feature = "io_uring"))] {
16-
use libc::{epoll_event, iovec, msghdr, off_t, size_t, sockaddr, socklen_t};
17-
use std::ffi::c_void;
16+
use libc::{epoll_event, iovec, mode_t, msghdr, off_t, size_t, sockaddr, socklen_t};
17+
use std::ffi::{c_char, c_uint, c_void};
1818
}
1919
}
2020

0 commit comments

Comments
 (0)