mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
signal: Move SIGINFO to a BSD-specific submodule
This commit is contained in:
+8
-3
@@ -32,9 +32,14 @@ use tokio_io::IoFuture;
|
|||||||
|
|
||||||
pub use self::libc::{SIGUSR1, SIGUSR2, SIGINT, SIGTERM};
|
pub use self::libc::{SIGUSR1, SIGUSR2, SIGINT, SIGTERM};
|
||||||
pub use self::libc::{SIGALRM, SIGHUP, SIGPIPE, SIGQUIT, SIGTRAP};
|
pub use self::libc::{SIGALRM, SIGHUP, SIGPIPE, SIGQUIT, SIGTRAP};
|
||||||
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "macos",
|
|
||||||
target_os = "netbsd", target_os = "openbsd"))]
|
/// BSD-specific definitions
|
||||||
pub use self::libc::SIGINFO;
|
mod bsd {
|
||||||
|
#[cfg(any(target_os = "dragonfly", target_os = "freebsd",
|
||||||
|
target_os = "macos", target_os = "netbsd",
|
||||||
|
target_os = "openbsd"))]
|
||||||
|
pub use super::libc::SIGINFO;
|
||||||
|
}
|
||||||
|
|
||||||
// Number of different unix signals
|
// Number of different unix signals
|
||||||
// (FreeBSD has 33)
|
// (FreeBSD has 33)
|
||||||
|
|||||||
Reference in New Issue
Block a user