provide const value for MAP_ANONYMOUS
This commit is contained in:
parent
87a8bc6557
commit
0eca706d56
1 changed files with 2 additions and 0 deletions
|
|
@ -90,6 +90,8 @@ elif defined(posix):
|
|||
const MAP_ANONYMOUS = 0x1000
|
||||
elif defined(solaris):
|
||||
const MAP_ANONYMOUS = 0x100
|
||||
elif defined(linux):
|
||||
const MAP_ANONYMOUS = 0x20'i32
|
||||
else:
|
||||
var
|
||||
MAP_ANONYMOUS {.importc: "MAP_ANONYMOUS", header: "<sys/mman.h>".}: cint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue