Auto merge of #2173 - devnexen:elf_aux_info, r=Amanieu

freebsd update adding `elf_aux_info` from 12.x release.
This commit is contained in:
bors 2021-05-16 21:55:23 +00:00
commit 4e7867d1b5
3 changed files with 8 additions and 0 deletions

View file

@ -1679,6 +1679,11 @@ fn test_freebsd(target: &str) {
_ => cfg.define("_WANT_FREEBSD11_STAT", None),
};
let freebsdlast = match freebsd_ver {
Some(12) | Some(13) => true,
_ => false,
};
headers! { cfg:
"aio.h",
"arpa/inet.h",
@ -1725,6 +1730,7 @@ fn test_freebsd(target: &str) {
"stdlib.h",
"string.h",
"sys/capsicum.h",
[freebsdlast]:"sys/auxv.h",
"sys/cpuset.h",
"sys/event.h",
"sys/extattr.h",

View file

@ -227,6 +227,7 @@ extern "C" {
pub fn fdatasync(fd: ::c_int) -> ::c_int;
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
pub fn elf_aux_info(aux: ::c_int, buf: *mut ::c_void, buflen: ::c_int) -> ::c_int;
}
cfg_if! {

View file

@ -231,6 +231,7 @@ extern "C" {
pub fn fdatasync(fd: ::c_int) -> ::c_int;
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
pub fn elf_aux_info(aux: ::c_int, buf: *mut ::c_void, buflen: ::c_int) -> ::c_int;
}
cfg_if! {