Skip to content

Commit

Permalink
change getnameinfo flags type to int to conform to other libc impleme…
Browse files Browse the repository at this point in the history
…ntations
  • Loading branch information
skrap committed Nov 23, 2020
1 parent 602a223 commit aafc9be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2734,6 +2734,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,
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/unix/linux_like/linux/uclibc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit aafc9be

Please sign in to comment.