Fixed targets without the sync() function

This commit is contained in:
Razican 2017-05-26 17:52:12 +02:00
parent b993a9bf4c
commit 406b01a811
3 changed files with 3 additions and 2 deletions

View file

@ -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! {

View file

@ -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! {

View file

@ -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! {