Skip to content

Commit

Permalink
Add missing link_name for getmntinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 10, 2021
1 parent 6b9d509 commit 6192def
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6192def

Please sign in to comment.