Skip to content
Snippets Groups Projects
Commit f7245fed authored by Alan Somers's avatar Alan Somers
Browse files

Fix the link_name for fstat and fstatfs on FreeBSD

parent 9af04ceb
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment