File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -705,6 +705,8 @@ MALLOCX_ARENA
705
705
MALLOCX_ALIGN
706
706
MALLOCX_TCACHE
707
707
MALLOCX_ZERO
708
+ MAP_ALIGNED
709
+ MAP_ALIGNED_SUPER
708
710
MAP_COPY
709
711
MAP_EXCL
710
712
MAP_FILE
Original file line number Diff line number Diff line change @@ -4670,6 +4670,18 @@ pub const SCTP_ASSOC_RESET_FAILED: ::c_int = 0x0008;
4670
4670
pub const SCTP_STREAM_CHANGE_DENIED : :: c_int = 0x0004 ;
4671
4671
pub const SCTP_STREAM_CHANGE_FAILED : :: c_int = 0x0008 ;
4672
4672
4673
+ cfg_if ! {
4674
+ if #[ cfg( libc_const_extern_fn) ] {
4675
+ pub const fn MAP_ALIGNED ( a: :: c_int) -> :: c_int {
4676
+ a << 24
4677
+ }
4678
+ } else {
4679
+ pub fn MAP_ALIGNED ( a: :: c_int) -> :: c_int {
4680
+ a << 24
4681
+ }
4682
+ }
4683
+ }
4684
+
4673
4685
const_fn ! {
4674
4686
{ const } fn _ALIGN( p: usize ) -> usize {
4675
4687
( p + _ALIGNBYTES) & !_ALIGNBYTES
You can’t perform that action at this time.
0 commit comments