mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Get access to MAP_ANONYMOUS in pedantic compile mode
This commit is contained in:
parent
df15dfa6fd
commit
a132d69757
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
#include <assert.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
// For MAP_ANONYMOUS on GNU/Linux
|
||||
#define _GNU_SOURCE
|
||||
// For mmapp()
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue