Fixed targets without the sync() function
This commit is contained in:
parent
b993a9bf4c
commit
406b01a811
|
@ -432,6 +432,8 @@ extern {
|
|||
link_name = "recvmsg$UNIX2003")]
|
||||
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int)
|
||||
-> ::ssize_t;
|
||||
|
||||
pub fn sync();
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
|
|
@ -853,8 +853,6 @@ extern {
|
|||
pub fn posix_openpt(flags: ::c_int) -> ::c_int;
|
||||
pub fn ptsname(fd: ::c_int) -> *mut ::c_char;
|
||||
pub fn unlockpt(fd: ::c_int) -> ::c_int;
|
||||
|
||||
pub fn sync();
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
|
|
@ -1001,6 +1001,7 @@ extern {
|
|||
flags: ::c_int) -> ::c_int;
|
||||
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut mmsghdr, vlen: ::c_uint,
|
||||
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
|
||||
pub fn sync();
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
|
Loading…
Reference in a new issue