diff options
| author | LinkTed <LinkTed@users.noreply.github.com> | 2020-08-28 18:41:48 +0200 |
|---|---|---|
| committer | LinkTed <LinkTed@users.noreply.github.com> | 2020-10-10 15:19:12 +0200 |
| commit | 53791b3ff4322aec2a82a84952be91d1be4058b5 (patch) | |
| tree | 221c4e534ef0c55a8e1b45ae98001eef58c5b4cf /library/std/src/sys/unix/ext/net/mod.rs | |
| parent | 07ed6afc6de728c6ea8d021156af318172b1dbbc (diff) | |
| download | rust-53791b3ff4322aec2a82a84952be91d1be4058b5.tar.gz rust-53791b3ff4322aec2a82a84952be91d1be4058b5.zip | |
Move conditional compilation to the upper module and sort the target OS list alphabetically
Diffstat (limited to 'library/std/src/sys/unix/ext/net/mod.rs')
| -rw-r--r-- | library/std/src/sys/unix/ext/net/mod.rs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/ext/net/mod.rs b/library/std/src/sys/unix/ext/net/mod.rs index 93b72df520a..125432b2b71 100644 --- a/library/std/src/sys/unix/ext/net/mod.rs +++ b/library/std/src/sys/unix/ext/net/mod.rs @@ -3,6 +3,22 @@ #![stable(feature = "unix_socket", since = "1.10.0")] mod addr; +#[cfg(any( + target_os = "android", + target_os = "dragonfly", + target_os = "emscripten", + target_os = "freebsd", + target_os = "fuchsia", + target_os = "haiku", + target_os = "illumos", + target_os = "ios", + target_os = "linux", + target_os = "macos", + target_os = "netbsd", + target_os = "openbsd", + target_os = "solaris", + target_env = "uclibc", +))] mod ancillary; mod datagram; mod listener; @@ -13,6 +29,22 @@ mod test; #[stable(feature = "unix_socket", since = "1.10.0")] pub use self::addr::*; +#[cfg(any( + target_os = "android", + target_os = "dragonfly", + target_os = "emscripten", + target_os = "freebsd", + target_os = "fuchsia", + target_os = "haiku", + target_os = "illumos", + target_os = "ios", + target_os = "linux", + target_os = "macos", + target_os = "netbsd", + target_os = "openbsd", + target_os = "solaris", + target_env = "uclibc", +))] #[unstable(feature = "unix_socket_ancillary_data", issue = "none")] pub use self::ancillary::*; #[stable(feature = "unix_socket", since = "1.10.0")] |
