1
0
Fork 0
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:
Alan Wu 2020-10-05 13:34:22 -04:00
parent df15dfa6fd
commit a132d69757

View file

@ -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