diff options
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/lsof.rs (renamed from src/os/macos.rs) | 0 | ||||
-rw-r--r-- | src/os/mod.rs | 6 | ||||
-rw-r--r-- | src/os/shared.rs | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/os/macos.rs b/src/os/lsof.rs index 68b4bad..68b4bad 100644 --- a/src/os/macos.rs +++ b/src/os/lsof.rs diff --git a/src/os/mod.rs b/src/os/mod.rs index acc7150..04c1f08 100644 --- a/src/os/mod.rs +++ b/src/os/mod.rs @@ -1,10 +1,10 @@ #[cfg(target_os = "linux")] pub(self) mod linux; -#[cfg(target_os = "macos")] -pub(self) mod macos; +#[cfg(any(target_os = "macos", target_os = "freebsd"))] +pub(self) mod lsof; -#[cfg(target_os = "macos")] +#[cfg(any(target_os = "macos", target_os = "freebsd"))] mod lsof_utils; mod shared; diff --git a/src/os/shared.rs b/src/os/shared.rs index 55a8553..852d4f7 100644 --- a/src/os/shared.rs +++ b/src/os/shared.rs @@ -13,8 +13,8 @@ use signal_hook::iterator::Signals; #[cfg(target_os = "linux")] use crate::os::linux::get_open_sockets; -#[cfg(target_os = "macos")] -use crate::os::macos::get_open_sockets; +#[cfg(any(target_os = "macos", target_os = "freebsd"))] +use crate::os::lsof::get_open_sockets; use crate::{network::dns, OsInputOutput}; pub type OnSigWinch = dyn Fn(Box<dyn Fn()>) + Send; @@ -143,7 +143,7 @@ pub fn get_input( } #[inline] -#[cfg(target_os = "macos")] +#[cfg(any(target_os = "macos", target_os = "freebsd"))] fn eperm_message() -> &'static str { "Insufficient permissions to listen on network interface(s). Try running with sudo." } |