summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2020-10-05 13:34:22 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:24 -0400
commita132d69757486d080b94d7f2e416de6396e7f894 (patch)
treed4ab04867cc186a7bb885fb3d4d860f44d8fece8
parentdf15dfa6fd5e84df4e7d0aa02106d28e8d214055 (diff)
downloadruby-a132d69757486d080b94d7f2e416de6396e7f894.tar.gz
Get access to MAP_ANONYMOUS in pedantic compile mode
-rw-r--r--ujit_asm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ujit_asm.c b/ujit_asm.c
index 1ff1c537b7..fda657757b 100644
--- a/ujit_asm.c
+++ b/ujit_asm.c
@@ -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