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:
commit
4e7867d1b5
|
@ -1679,6 +1679,11 @@ fn test_freebsd(target: &str) {
|
||||||
_ => cfg.define("_WANT_FREEBSD11_STAT", None),
|
_ => cfg.define("_WANT_FREEBSD11_STAT", None),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let freebsdlast = match freebsd_ver {
|
||||||
|
Some(12) | Some(13) => true,
|
||||||
|
_ => false,
|
||||||
|
};
|
||||||
|
|
||||||
headers! { cfg:
|
headers! { cfg:
|
||||||
"aio.h",
|
"aio.h",
|
||||||
"arpa/inet.h",
|
"arpa/inet.h",
|
||||||
|
@ -1725,6 +1730,7 @@ fn test_freebsd(target: &str) {
|
||||||
"stdlib.h",
|
"stdlib.h",
|
||||||
"string.h",
|
"string.h",
|
||||||
"sys/capsicum.h",
|
"sys/capsicum.h",
|
||||||
|
[freebsdlast]:"sys/auxv.h",
|
||||||
"sys/cpuset.h",
|
"sys/cpuset.h",
|
||||||
"sys/event.h",
|
"sys/event.h",
|
||||||
"sys/extattr.h",
|
"sys/extattr.h",
|
||||||
|
|
|
@ -227,6 +227,7 @@ extern "C" {
|
||||||
pub fn fdatasync(fd: ::c_int) -> ::c_int;
|
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 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! {
|
cfg_if! {
|
||||||
|
|
|
@ -231,6 +231,7 @@ extern "C" {
|
||||||
pub fn fdatasync(fd: ::c_int) -> ::c_int;
|
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 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! {
|
cfg_if! {
|
||||||
|
|
Loading…
Reference in a new issue