From 5846ae2afd76ba1ffaddb9d08f91dfbed30243c4 Mon Sep 17 00:00:00 2001 From: Amanda Tait Date: Wed, 5 Aug 2020 13:25:03 -0400 Subject: Add fuchsia support Allow nix to compile on Fuchsia by conditionally avoiding libc functionality that does not exist for Fuchsia. --- src/features.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/features.rs') diff --git a/src/features.rs b/src/features.rs index c3a53fbf..6b1cff5d 100644 --- a/src/features.rs +++ b/src/features.rs @@ -97,7 +97,7 @@ mod os { #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly", target_os = "ios", target_os = "openbsd", target_os = "netbsd", - target_os = "redox"))] + target_os = "redox", target_os = "fuchsia"))] mod os { /// Check if the OS supports atomic close-on-exec for sockets pub fn socket_atomic_cloexec() -> bool { -- cgit v1.2.3