summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2021-12-10 18:37:19 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-12-10 21:47:52 +0100
commit6192def039773bf4443d329de5f76a7c76cb9c67 (patch)
tree3f411e43aabb8df9bf483b7957a63d5ef5b29bbb
parent6b9d5099d103df9b076778d97c3607b2ed2729a9 (diff)
downloadrust-libc-6192def039773bf4443d329de5f76a7c76cb9c67.tar.gz
Add missing link_name for getmntinfo
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs
index 871c204fce..864d5b4933 100644
--- a/src/unix/bsd/freebsdlike/freebsd/mod.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs
@@ -4037,6 +4037,10 @@ extern "C" {
pub fn getfh(path: *const ::c_char, fhp: *mut fhandle_t) -> ::c_int;
pub fn lgetfh(path: *const ::c_char, fhp: *mut fhandle_t) -> ::c_int;
pub fn getfsstat(buf: *mut ::statfs, bufsize: ::c_long, mode: ::c_int) -> ::c_int;
+ #[cfg_attr(
+ all(target_os = "freebsd", freebsd11),
+ link_name = "getmntinfo@FBSD_1.0"
+ )]
pub fn getmntinfo(mntbufp: *mut *mut ::statfs, mode: ::c_int) -> ::c_int;
pub fn mount(
type_: *const ::c_char,