signal: Move SIGINFO to a BSD-specific submodule

This commit is contained in:
Alan Somers 2018-08-24 21:25:14 -06:00 committed by Carl Lerche
parent 8ad66d296f
commit bcd42d11d9

View File

@ -32,9 +32,14 @@ use tokio_io::IoFuture;
pub use self::libc::{SIGUSR1, SIGUSR2, SIGINT, SIGTERM};
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"))]
pub use self::libc::SIGINFO;
/// BSD-specific definitions
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
// (FreeBSD has 33)