summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2020-10-05 14:28:29 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:24 -0400
commitb8dff14afa050c1550094420be904e00342f227b (patch)
tree77997ef3c42b828372e625edef752b3240db4bb4
parent3c8a9da7efef89a058f0838afae436231265cef8 (diff)
downloadruby-b8dff14afa050c1550094420be904e00342f227b.tar.gz
_GNU_SOURCE has to be before includes
-rw-r--r--ujit_asm.c5
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