Skip to content

Commit 0bc18a5

Browse files
committed
[breaking change] sendmmsg/recvmmsg have incorrect signature c_int vs c_uint on emscripten
1 parent 05caeab commit 0bc18a5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,6 +1789,9 @@ fn test_emscripten(target: &str) {
17891789
// users should use SIGSYS instead
17901790
"SIGUNUSED" => true,
17911791

1792+
// FIXME: emscripten uses different constants to constructs these
1793+
n if n.contains("__SIZEOF_PTHREAD") => true,
1794+
17921795
_ => false,
17931796
}
17941797
});

src/unix/notbsd/emscripten/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,9 +1827,9 @@ extern {
18271827
pub fn getdomainname(name: *mut ::c_char, len: ::size_t) -> ::c_int;
18281828
pub fn setdomainname(name: *const ::c_char, len: ::size_t) -> ::c_int;
18291829
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
1830-
flags: ::c_int) -> ::c_int;
1830+
flags: ::c_uint) -> ::c_int;
18311831
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
1832-
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
1832+
flags: ::c_uint, timeout: *mut ::timespec) -> ::c_int;
18331833
pub fn sync();
18341834
pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
18351835
pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int;

0 commit comments

Comments
 (0)