diff options
author | Xavier L'Heureux <xavier.lheureux@icloud.com> | 2019-07-12 16:27:24 -0400 |
---|---|---|
committer | Xavier L'Heureux <dev.xlheureux@gmail.com> | 2020-05-17 21:05:45 -0400 |
commit | 0259f9d51718b90118bbd1d792c88781d0aa98f7 (patch) | |
tree | c8d067b61393cb1628890790def3c6691c70bab6 /src/features.rs | |
parent | d3fef370b843e0ffd6fc6df6e80d9bbe0d024863 (diff) | |
download | nix-0259f9d51718b90118bbd1d792c88781d0aa98f7.zip |
Add Redox support for most of the modules
Some things are not implemented yet in redox, so a lot of annotations
were added to remove functions when compiling for redox. Those functions
will hopefully be added in time, but for now it's better to have partial
support than none.
Blocked by https://github.com/rust-lang/libc/pull/1438
Diffstat (limited to 'src/features.rs')
-rw-r--r-- | src/features.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/features.rs b/src/features.rs index 76cdfd3a..827eecac 100644 --- a/src/features.rs +++ b/src/features.rs @@ -94,7 +94,10 @@ mod os { } } -#[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly", target_os = "ios", target_os = "openbsd", target_os = "netbsd"))] +#[cfg(any(target_os = "macos", target_os = "freebsd", + target_os = "dragonfly", target_os = "ios", + target_os = "openbsd", target_os = "netbsd", + target_os = "redox"))] mod os { /// Check if the OS supports atomic close-on-exec for sockets pub fn socket_atomic_cloexec() -> bool { |