From 6192def039773bf4443d329de5f76a7c76cb9c67 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 10 Dec 2021 18:37:19 +0100 Subject: [PATCH] Add missing link_name for getmntinfo --- src/unix/bsd/freebsdlike/freebsd/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 871c204fcea19..864d5b493392a 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,