1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

_GNU_SOURCE has to be before includes

This commit is contained in:
Alan Wu 2020-10-05 14:28:29 -04:00
parent 3c8a9da7ef
commit b8dff14afa

View file

@ -1,11 +1,12 @@
// For MAP_ANONYMOUS on GNU/Linux
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
#ifndef _WIN32
// For MAP_ANONYMOUS on GNU/Linux
#define _GNU_SOURCE
// For mmapp()
#include <sys/mman.h>
#endif