diff options
author | Val Packett <val@packett.cool> | 2023-02-11 18:18:12 -0300 |
---|---|---|
committer | Val Packett <val@packett.cool> | 2023-02-11 18:36:24 -0300 |
commit | a4fd9d32c854417afa1acdbc922eeafac5fcbbfd (patch) | |
tree | fda09ca242a2a7440a29bc093d374aa88fedee3d /src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs | |
parent | 196d49727492a7cd417bf71d676b9a5dc3d94ea0 (diff) | |
download | rust-libc-a4fd9d32c854417afa1acdbc922eeafac5fcbbfd.tar.gz |
FreeBSD: move newly introduced functions in all versions back to root
According to #3023, new ABI did not need to be hidden away
under cfg(freebsdXX) flags, only changed ABI!
Diffstat (limited to 'src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs')
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs b/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs index 563c0f936f..f2d170fb28 100644 --- a/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs @@ -462,8 +462,8 @@ extern "C" { msgflg: ::c_int, ) -> ::c_int; - pub fn fdatasync(fd: ::c_int) -> ::c_int; - + // Type of `path` argument changed from `const void*` to `void*` + // in FreeBSD 12 pub fn dirname(path: *const ::c_char) -> *mut ::c_char; pub fn basename(path: *const ::c_char) -> *mut ::c_char; } |