change getnameinfo flags type to int to conform to other libc implementations

This commit is contained in:
Jonah Petri 2020-11-23 08:34:25 -05:00
parent 10c54181b4
commit 7775ce20b9
2 changed files with 5 additions and 1 deletions

View File

@ -2725,6 +2725,10 @@ fn test_linux(target: &str) {
"posix_spawn_file_actions_init" if uclibc => true,
"posix_spawn_file_actions_destroy" if uclibc => true,
// uclibc defines the flags type as a uint, but dependent crates
// assume it's a int instead.
"getnameinfo" if uclibc => true,
_ => false,
}
});

View File

@ -271,7 +271,7 @@ extern "C" {
hostlen: ::socklen_t,
serv: *mut ::c_char,
sevlen: ::socklen_t,
flags: ::c_uint,
flags: ::c_int,
) -> ::c_int;
pub fn pwritev(