File tree 2 files changed +15
-1
lines changed
src/unix/bsd/freebsdlike/freebsd 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -702,6 +702,8 @@ MALLOCX_ARENA
702
702
MALLOCX_ALIGN
703
703
MALLOCX_TCACHE
704
704
MALLOCX_ZERO
705
+ MAP_ALIGNED
706
+ MAP_ALIGNED_SUPER
705
707
MAP_COPY
706
708
MAP_EXCL
707
709
MAP_FILE
Original file line number Diff line number Diff line change @@ -2664,7 +2664,7 @@ pub const Q_SETQUOTA: ::c_int = 0x800;
2664
2664
pub const MAP_GUARD : :: c_int = 0x00002000 ;
2665
2665
pub const MAP_EXCL : :: c_int = 0x00004000 ;
2666
2666
pub const MAP_PREFAULT_READ : :: c_int = 0x00040000 ;
2667
- pub const MAP_ALIGNED_SUPER : :: c_int = 1 << 24 ;
2667
+ pub const MAP_ALIGNED_SUPER : :: c_int = MAP_ALIGNED ( 1 ) ;
2668
2668
2669
2669
pub const POSIX_FADV_NORMAL : :: c_int = 0 ;
2670
2670
pub const POSIX_FADV_RANDOM : :: c_int = 1 ;
@@ -5601,6 +5601,18 @@ extern "C" {
5601
5601
) -> :: c_int ;
5602
5602
}
5603
5603
5604
+ cfg_if ! {
5605
+ if #[ cfg( libc_const_extern_fn) ] {
5606
+ pub const fn MAP_ALIGNED ( a: :: c_int) -> :: c_int {
5607
+ a << 24
5608
+ }
5609
+ } else {
5610
+ pub fn MAP_ALIGNED ( a: :: c_int) -> :: c_int {
5611
+ a << 24
5612
+ }
5613
+ }
5614
+ }
5615
+
5604
5616
cfg_if ! {
5605
5617
if #[ cfg( freebsd14) ] {
5606
5618
mod freebsd14;
You can’t perform that action at this time.
0 commit comments