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:
parent
3c8a9da7ef
commit
b8dff14afa
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue