summaryrefslogtreecommitdiff
path: root/src/unix/bsd
diff options
context:
space:
mode:
authorRazican <razican@protonmail.ch>2017-05-26 17:52:12 +0200
committerRazican <razican@protonmail.ch>2017-05-26 17:52:12 +0200
commit406b01a811a00bbb831e28d3f563774cde4bfa23 (patch)
treeb52d10ee0a686c86efb1f669cd1c54435f084fd3 /src/unix/bsd
parentb993a9bf4c0350e6f3b72ba0635dc47b2fe67f46 (diff)
downloadrust-libc-406b01a811a00bbb831e28d3f563774cde4bfa23.tar.gz
Fixed targets without the sync() function
Diffstat (limited to 'src/unix/bsd')
-rw-r--r--src/unix/bsd/mod.rs2
1 files changed, 2 insertions, 0 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! {