diff options
author | Jonah Petri <jonah@petri.us> | 2021-12-07 16:57:52 -0500 |
---|---|---|
committer | Jonah Petri <jonah@petri.us> | 2022-01-24 10:06:35 -0500 |
commit | 6c4b9133f14d4488dc1b86411568b49e99fbe629 (patch) | |
tree | ec06e25f28ac2f989b1af4408d00407b9e548258 /src/sys/socket | |
parent | ae2b7b3552f3b800ab0f5e92dad06cd2e7df25e6 (diff) | |
download | nix-6c4b9133f14d4488dc1b86411568b49e99fbe629.zip |
uclibc support
Diffstat (limited to 'src/sys/socket')
-rw-r--r-- | src/sys/socket/addr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs index 4517c548..51999a3d 100644 --- a/src/sys/socket/addr.rs +++ b/src/sys/socket/addr.rs @@ -120,10 +120,10 @@ pub enum AddressFamily { #[cfg(any(target_os = "android", target_os = "linux"))] #[cfg_attr(docsrs, doc(cfg(all())))] Llc = libc::AF_LLC, - #[cfg(target_os = "linux")] + #[cfg(all(target_os = "linux", not(target_env = "uclibc")))] #[cfg_attr(docsrs, doc(cfg(all())))] Ib = libc::AF_IB, - #[cfg(target_os = "linux")] + #[cfg(all(target_os = "linux", not(target_env = "uclibc")))] #[cfg_attr(docsrs, doc(cfg(all())))] Mpls = libc::AF_MPLS, #[cfg(any(target_os = "android", target_os = "linux"))] |