Auto merge of #2704 - devnexen:fbsd_libutil_upd, r=Amanieu
adding getlocalbase to freebsd 13
This commit is contained in:
commit
cd875d3072
|
@ -2344,6 +2344,9 @@ fn test_freebsd(target: &str) {
|
|||
// Those were introduced in FreeBSD 12.
|
||||
"flopen" | "flopenat" if Some(12) > freebsd_ver => true,
|
||||
|
||||
// Added in FreeBSD 13.
|
||||
"getlocalbase" if Some(13) > freebsd_ver => true,
|
||||
|
||||
_ => false,
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1525,6 +1525,7 @@ getifaddrs
|
|||
getitimer
|
||||
getline
|
||||
getloadavg
|
||||
getlocalbase
|
||||
getnameinfo
|
||||
getpagesize
|
||||
getpagesizes
|
||||
|
|
|
@ -4326,6 +4326,8 @@ extern "C" {
|
|||
|
||||
pub fn flopen(path: *const ::c_char, flags: ::c_int, ...) -> ::c_int;
|
||||
pub fn flopenat(fd: ::c_int, path: *const ::c_char, flags: ::c_int, ...) -> ::c_int;
|
||||
|
||||
pub fn getlocalbase() -> *const ::c_char;
|
||||
}
|
||||
|
||||
#[link(name = "procstat")]
|
||||
|
|
Loading…
Reference in a new issue