Skip to content

Commit 3e9ccfa

Browse files
committed
Auto merge of #799 - asomers:fdatasync, r=alexcrichton
Define fdatasync on FreeBSD. It was introduced in FreeBSD 11.1.
2 parents 12bdc41 + 549da8a commit 3e9ccfa

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

+1
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,7 @@ extern {
881881
pub fn jail_set(iov: *mut ::iovec, niov: ::c_uint, flags: ::c_int)
882882
-> ::c_int;
883883

884+
pub fn fdatasync(fd: ::c_int) -> ::c_int;
884885
pub fn posix_fallocate(fd: ::c_int, offset: ::off_t,
885886
len: ::off_t) -> ::c_int;
886887
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t,

0 commit comments

Comments
 (0)