Skip to content

Commit ec07815

Browse files
committed
Fix failing build of std on armv5te-unknown-linux-uclibceabi due to missing cmsg_len_zero
1 parent ddbc617 commit ec07815

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

library/std/src/sys/unix/ext/net/ancillary.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,11 @@ impl<'a> AncillaryData<'a> {
360360
fn try_from_cmsghdr(cmsg: &'a libc::cmsghdr) -> Result<Self, AncillaryError> {
361361
unsafe {
362362
cfg_if::cfg_if! {
363-
if #[cfg(any(target_os = "android", all(target_os = "linux", target_env = "gnu")))] {
363+
if #[cfg(any(
364+
target_os = "android",
365+
all(target_os = "linux", target_env = "gnu"),
366+
all(target_os = "linux", target_env = "uclibc"),
367+
))] {
364368
let cmsg_len_zero = libc::CMSG_LEN(0) as libc::size_t;
365369
} else if #[cfg(any(
366370
target_os = "dragonfly",

0 commit comments

Comments
 (0)