Skip to content

Commit aafc9be

Browse files
committed
change getnameinfo flags type to int to conform to other libc implementations
1 parent 602a223 commit aafc9be

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

libc-test/build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2734,6 +2734,10 @@ fn test_linux(target: &str) {
27342734
"posix_spawn_file_actions_init" if uclibc => true,
27352735
"posix_spawn_file_actions_destroy" if uclibc => true,
27362736

2737+
// uclibc defines the flags type as a uint, but dependent crates
2738+
// assume it's a int instead.
2739+
"getnameinfo" if uclibc => true,
2740+
27372741
_ => false,
27382742
}
27392743
});

src/unix/linux_like/linux/uclibc/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ extern "C" {
271271
hostlen: ::socklen_t,
272272
serv: *mut ::c_char,
273273
sevlen: ::socklen_t,
274-
flags: ::c_uint,
274+
flags: ::c_int,
275275
) -> ::c_int;
276276

277277
pub fn pwritev(

0 commit comments

Comments
 (0)