Skip to content

Commit d351b3b

Browse files
committed
Add the NI_IDN getnameinfo() extension and skip test for musl
1 parent a17ff20 commit d351b3b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3671,6 +3671,10 @@ fn test_linux(target: &str) {
36713671
if name.starts_with("RLIM64") {
36723672
return true;
36733673
}
3674+
// CI fails because musl targets use Linux v4 kernel
3675+
if name.starts_with("NI_IDN") {
3676+
return true;
3677+
}
36743678
}
36753679
match name {
36763680
// These constants are not available if gnu headers have been included

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,6 +2103,7 @@ pub const NI_NUMERICSERV: ::c_int = 2;
21032103
pub const NI_NOFQDN: ::c_int = 4;
21042104
pub const NI_NAMEREQD: ::c_int = 8;
21052105
pub const NI_DGRAM: ::c_int = 16;
2106+
pub const NI_IDN: ::c_int = 32;
21062107

21072108
pub const SYNC_FILE_RANGE_WAIT_BEFORE: ::c_uint = 1;
21082109
pub const SYNC_FILE_RANGE_WRITE: ::c_uint = 2;

0 commit comments

Comments
 (0)