Skip to content

Commit 8baf763

Browse files
committed
freebsd update adding elf_aux_info from 12.x release.
1 parent b3692e9 commit 8baf763

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

libc-test/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,6 +1679,11 @@ fn test_freebsd(target: &str) {
16791679
_ => cfg.define("_WANT_FREEBSD11_STAT", None),
16801680
};
16811681

1682+
let freebsdlast = match freebsd_ver {
1683+
Some(12) | Some(13) => true,
1684+
_ => false,
1685+
};
1686+
16821687
headers! { cfg:
16831688
"aio.h",
16841689
"arpa/inet.h",
@@ -1725,6 +1730,7 @@ fn test_freebsd(target: &str) {
17251730
"stdlib.h",
17261731
"string.h",
17271732
"sys/capsicum.h",
1733+
[freebsdlast]:"sys/auxv.h",
17281734
"sys/cpuset.h",
17291735
"sys/event.h",
17301736
"sys/extattr.h",

src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ extern "C" {
227227
pub fn fdatasync(fd: ::c_int) -> ::c_int;
228228

229229
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
230+
pub fn elf_aux_info(aux: ::c_int, buf: *mut ::c_void, buflen: ::c_int) -> ::c_int;
230231
}
231232

232233
cfg_if! {

src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ extern "C" {
231231
pub fn fdatasync(fd: ::c_int) -> ::c_int;
232232

233233
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
234+
pub fn elf_aux_info(aux: ::c_int, buf: *mut ::c_void, buflen: ::c_int) -> ::c_int;
234235
}
235236

236237
cfg_if! {

0 commit comments

Comments
 (0)