Skip to content

Commit

Permalink
Merge pull request #1495 from asomers/fbsd_statfs
Browse files Browse the repository at this point in the history
Fix the link_name for fstat and fstatfs on FreeBSD
  • Loading branch information
gnzlbg authored Sep 2, 2019
2 parents 9af04ce + f7245fe commit 7e2f12f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,15 @@ extern {
newfd: ::c_int,
) -> ::c_int;

#[cfg_attr(
all(target_os = "freebsd", freebsd11),
link_name = "statfs@FBSD_1.0"
)]
pub fn statfs(path: *const ::c_char, buf: *mut statfs) -> ::c_int;
#[cfg_attr(
all(target_os = "freebsd", freebsd11),
link_name = "fstatfs@FBSD_1.0"
)]
pub fn fstatfs(fd: ::c_int, buf: *mut statfs) -> ::c_int;

pub fn dup3(src: ::c_int, dst: ::c_int, flags: ::c_int) -> ::c_int;
Expand Down

0 comments on commit 7e2f12f

Please sign in to comment.