Skip to content

Commit 406b01a

Browse files
committed
Fixed targets without the sync() function
1 parent b993a9b commit 406b01a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/unix/bsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ extern {
432432
link_name = "recvmsg$UNIX2003")]
433433
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int)
434434
-> ::ssize_t;
435+
436+
pub fn sync();
435437
}
436438

437439
cfg_if! {

src/unix/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,6 @@ extern {
853853
pub fn posix_openpt(flags: ::c_int) -> ::c_int;
854854
pub fn ptsname(fd: ::c_int) -> *mut ::c_char;
855855
pub fn unlockpt(fd: ::c_int) -> ::c_int;
856-
857-
pub fn sync();
858856
}
859857

860858
cfg_if! {

src/unix/notbsd/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ extern {
10011001
flags: ::c_int) -> ::c_int;
10021002
pub fn recvmmsg(sockfd: ::c_int, msgvec: *mut mmsghdr, vlen: ::c_uint,
10031003
flags: ::c_int, timeout: *mut ::timespec) -> ::c_int;
1004+
pub fn sync();
10041005
}
10051006

10061007
cfg_if! {

0 commit comments

Comments
 (0)