diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2020-10-05 14:28:29 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:24 -0400 |
commit | b8dff14afa050c1550094420be904e00342f227b (patch) | |
tree | 77997ef3c42b828372e625edef752b3240db4bb4 /ujit_asm.c | |
parent | 3c8a9da7efef89a058f0838afae436231265cef8 (diff) | |
download | ruby-b8dff14afa050c1550094420be904e00342f227b.tar.gz |
_GNU_SOURCE has to be before includes
Diffstat (limited to 'ujit_asm.c')
-rw-r--r-- | ujit_asm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ujit_asm.c b/ujit_asm.c index fda657757b..0db4a540c7 100644 --- a/ujit_asm.c +++ b/ujit_asm.c @@ -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 |