Skip to content

Commit 367f5c1

Browse files
committed
Define fdatasync on FreeBSD. It was introduced in FreeBSD 11.1.
1 parent c6d4aa6 commit 367f5c1

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+1
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ extern {
784784
pub fn jail_set(iov: *mut ::iovec, niov: ::c_uint, flags: ::c_int)
785785
-> ::c_int;
786786

787+
pub fn fdatasync(fd: ::c_int) -> ::c_int;
787788
pub fn posix_fallocate(fd: ::c_int, offset: ::off_t,
788789
len: ::off_t) -> ::c_int;
789790
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t,

0 commit comments

Comments
 (0)