From 9a3fe18981e3942830878b0a04dc05bd34772bed Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 30 Aug 2023 02:04:24 +0900 Subject: [PATCH] Use std::os::raw::c_int and remove our own type alias --- src/os/kqueue.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/os/kqueue.rs b/src/os/kqueue.rs index c3db033..982640b 100644 --- a/src/os/kqueue.rs +++ b/src/os/kqueue.rs @@ -135,11 +135,7 @@ impl Filter for &T {} /// No matter what `PollMode` is specified, this filter will always be /// oneshot-only. #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] -pub struct Signal(pub c_int); - -/// Alias for `libc::c_int`. -#[allow(non_camel_case_types)] -pub type c_int = i32; +pub struct Signal(pub std::os::raw::c_int); unsafe impl FilterSealed for Signal { #[inline(always)]