From 837c3934d5dc60f095a3e82e5ffbeec0d501c004 Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Sat, 25 Aug 2018 09:40:04 -0700 Subject: [PATCH] signal: Also cfg gate the entire `unix::bsd` module --- src/unix.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/unix.rs b/src/unix.rs index 76ca51cc6..0d8a80a06 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -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",