summaryrefslogtreecommitdiff
path: root/src/sys/socket
diff options
context:
space:
mode:
authorJonah Petri <jonah@petri.us>2021-12-07 16:57:52 -0500
committerJonah Petri <jonah@petri.us>2022-01-24 10:06:35 -0500
commit6c4b9133f14d4488dc1b86411568b49e99fbe629 (patch)
treeec06e25f28ac2f989b1af4408d00407b9e548258 /src/sys/socket
parentae2b7b3552f3b800ab0f5e92dad06cd2e7df25e6 (diff)
downloadnix-6c4b9133f14d4488dc1b86411568b49e99fbe629.zip
uclibc support
Diffstat (limited to 'src/sys/socket')
-rw-r--r--src/sys/socket/addr.rs4
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"))]