Skip to content

Commit

Permalink
Add the NI_IDN getnameinfo() extension and skip test for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
adder32 committed Nov 12, 2023
1 parent a17ff20 commit d351b3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libc-test/build.rs
Expand Up @@ -3671,6 +3671,10 @@ fn test_linux(target: &str) {
if name.starts_with("RLIM64") {
return true;
}
// CI fails because musl targets use Linux v4 kernel
if name.starts_with("NI_IDN") {
return true;
}
}
match name {
// These constants are not available if gnu headers have been included
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/mod.rs
Expand Up @@ -2103,6 +2103,7 @@ pub const NI_NUMERICSERV: ::c_int = 2;
pub const NI_NOFQDN: ::c_int = 4;
pub const NI_NAMEREQD: ::c_int = 8;
pub const NI_DGRAM: ::c_int = 16;
pub const NI_IDN: ::c_int = 32;

pub const SYNC_FILE_RANGE_WAIT_BEFORE: ::c_uint = 1;
pub const SYNC_FILE_RANGE_WRITE: ::c_uint = 2;
Expand Down

0 comments on commit d351b3b

Please sign in to comment.