summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--wireguard-go-rs/Cargo.toml2
-rw-r--r--wireguard-go-rs/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/wireguard-go-rs/Cargo.toml b/wireguard-go-rs/Cargo.toml
index 375e248f1c..f7572ab142 100644
--- a/wireguard-go-rs/Cargo.toml
+++ b/wireguard-go-rs/Cargo.toml
@@ -16,7 +16,7 @@ zeroize = "1.8.1"
# This is done, instead of using the makefile in wireguard-go to build maybenot-ffi into its archive, to prevent
# name clashes induced by link-time optimization.
# NOTE: the version of maybenot-ffi below must be the same as the version checked into the wireguard-go submodule
-[target.'cfg(unix)'.dependencies]
+[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
maybenot-ffi = "2.0.1"
[target.'cfg(target_os = "windows")'.dependencies]
diff --git a/wireguard-go-rs/src/lib.rs b/wireguard-go-rs/src/lib.rs
index b080d307b2..a98c9e056a 100644
--- a/wireguard-go-rs/src/lib.rs
+++ b/wireguard-go-rs/src/lib.rs
@@ -30,7 +30,7 @@ pub type LoggingCallback =
unsafe extern "system" fn(level: WgLogLevel, msg: *const c_char, context: LoggingContext);
// Make symbols from maybenot-ffi visible to wireguard-go
-#[cfg(all(daita, unix))]
+#[cfg(all(daita, any(target_os = "linux", target_os = "macos")))]
use maybenot_ffi as _;
/// A wireguard-go tunnel