ruby-changes:68592
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:10:19 +0900 (JST)
Subject: [ruby-changes:68592] a132d69757 (master): Get access to MAP_ANONYMOUS in pedantic compile mode
https://git.ruby-lang.org/ruby.git/commit/?id=a132d69757 From a132d69757486d080b94d7f2e416de6396e7f894 Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Mon, 5 Oct 2020 13:34:22 -0400 Subject: Get access to MAP_ANONYMOUS in pedantic compile mode --- ujit_asm.c | 2 ++ 1 file changed, 2 insertions(+) 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 @@ https://github.com/ruby/ruby/blob/trunk/ujit_asm.c#L4 #include <assert.h> #ifndef _WIN32 +// For MAP_ANONYMOUS on GNU/Linux +#define _GNU_SOURCE // For mmapp() #include <sys/mman.h> #endif -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/