Skip to content

Commit 6192def

Browse files
Add missing link_name for getmntinfo
1 parent 6b9d509 commit 6192def

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4037,6 +4037,10 @@ extern "C" {
40374037
pub fn getfh(path: *const ::c_char, fhp: *mut fhandle_t) -> ::c_int;
40384038
pub fn lgetfh(path: *const ::c_char, fhp: *mut fhandle_t) -> ::c_int;
40394039
pub fn getfsstat(buf: *mut ::statfs, bufsize: ::c_long, mode: ::c_int) -> ::c_int;
4040+
#[cfg_attr(
4041+
all(target_os = "freebsd", freebsd11),
4042+
link_name = "getmntinfo@FBSD_1.0"
4043+
)]
40404044
pub fn getmntinfo(mntbufp: *mut *mut ::statfs, mode: ::c_int) -> ::c_int;
40414045
pub fn mount(
40424046
type_: *const ::c_char,

0 commit comments

Comments
 (0)