File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1679,6 +1679,11 @@ fn test_freebsd(target: &str) {
1679
1679
_ => cfg. define ( "_WANT_FREEBSD11_STAT" , None ) ,
1680
1680
} ;
1681
1681
1682
+ let freebsdlast = match freebsd_ver {
1683
+ Some ( 12 ) | Some ( 13 ) => true ,
1684
+ _ => false ,
1685
+ } ;
1686
+
1682
1687
headers ! { cfg:
1683
1688
"aio.h" ,
1684
1689
"arpa/inet.h" ,
@@ -1725,6 +1730,7 @@ fn test_freebsd(target: &str) {
1725
1730
"stdlib.h" ,
1726
1731
"string.h" ,
1727
1732
"sys/capsicum.h" ,
1733
+ [ freebsdlast] : "sys/auxv.h" ,
1728
1734
"sys/cpuset.h" ,
1729
1735
"sys/event.h" ,
1730
1736
"sys/extattr.h" ,
Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ extern "C" {
227
227
pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
228
228
229
229
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 ;
230
231
}
231
232
232
233
cfg_if ! {
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ extern "C" {
231
231
pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
232
232
233
233
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 ;
234
235
}
235
236
236
237
cfg_if ! {
You can’t perform that action at this time.
0 commit comments