ruby-changes:68627
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:11:07 +0900 (JST)
Subject: [ruby-changes:68627] b8dff14afa (master): _GNU_SOURCE has to be before includes
https://git.ruby-lang.org/ruby.git/commit/?id=b8dff14afa From b8dff14afa050c1550094420be904e00342f227b Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Mon, 5 Oct 2020 14:28:29 -0400 Subject: _GNU_SOURCE has to be before includes --- ujit_asm.c | 5 +++-- 1 file 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 @@ https://github.com/ruby/ruby/blob/trunk/ujit_asm.c#L1 +// 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 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/