From bcd42d11d9c70ffbc2064c0511d662d234a4e58e Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Fri, 24 Aug 2018 21:25:14 -0600 Subject: [PATCH] signal: Move SIGINFO to a BSD-specific submodule --- src/unix.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/unix.rs b/src/unix.rs index 5d5f5ee80..76ca51cc6 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -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)