diff options
-rw-r--r-- | src/unix/bsd/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/notbsd/linux/mod.rs | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs index 96b0f22a10..deddca042d 100644 --- a/src/unix/bsd/mod.rs +++ b/src/unix/bsd/mod.rs @@ -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! { diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 075260455f..8d794e7459 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -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! { diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index b9375a36fa..c50c78ae29 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -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! { |