signal: Also cfg gate the entire unix::bsd module

This commit is contained in:
Ivan Petkov
2018-09-10 11:30:07 -07:00
committed by Carl Lerche
parent bcd42d11d9
commit 837c3934d5
+7
View File
@@ -34,6 +34,13 @@ pub use self::libc::{SIGUSR1, SIGUSR2, SIGINT, SIGTERM};
pub use self::libc::{SIGALRM, SIGHUP, SIGPIPE, SIGQUIT, SIGTRAP};
/// BSD-specific definitions
#[cfg(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
))]
mod bsd {
#[cfg(any(target_os = "dragonfly", target_os = "freebsd",
target_os = "macos", target_os = "netbsd",