Skip to content

Commit d26c2ab

Browse files
committed
timespec pointer also const on andriod
1 parent a4c25a9 commit d26c2ab

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,6 +1957,8 @@ extern {
19571957
pub fn __errno() -> *mut ::c_int;
19581958
pub fn sendmmsg(sockfd: ::c_int, msgvec: *const ::mmsghdr, vlen: ::c_uint,
19591959
flags: ::c_int) -> ::c_int;
1960+
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
1961+
flags: ::c_int, timeout: *const ::timespec) -> ::c_int;
19601962
}
19611963

19621964
cfg_if! {

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,6 +2079,8 @@ extern {
20792079
pub fn vhangup() -> ::c_int;
20802080
pub fn sendmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
20812081
flags: ::c_int) -> ::c_int;
2082+
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
2083+
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
20822084
pub fn sync();
20832085
pub fn syscall(num: ::c_long, ...) -> ::c_long;
20842086
pub fn sched_getaffinity(pid: ::pid_t,

src/unix/notbsd/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,8 +1378,6 @@ extern {
13781378
flags: ::c_int) -> ::ssize_t;
13791379
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int)
13801380
-> ::ssize_t;
1381-
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut ::mmsghdr, vlen: ::c_uint,
1382-
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
13831381
pub fn uname(buf: *mut ::utsname) -> ::c_int;
13841382
}
13851383

0 commit comments

Comments
 (0)