From 0295f1f53fdcfa7f6cd6696525325f3d12f6a660 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 13 Jan 2023 07:53:57 +0000 Subject: move _GNU_SOURCE definition This is to make the Ruby version happy. --- mwrap_core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mwrap_core.h b/mwrap_core.h index a2c6d4a..a246fea 100644 --- a/mwrap_core.h +++ b/mwrap_core.h @@ -4,6 +4,9 @@ * Disclaimer: I don't really know my way around XS or Perl internals well */ #define _LGPL_SOURCE /* allows URCU to inline some stuff */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif #include "mymalloc.h" /* includes dlmalloc_c.h */ #ifndef MWRAP_PERL # define MWRAP_PERL 0 @@ -18,9 +21,6 @@ # define MWRAP_BT_MAX 32 #endif -#ifndef _GNU_SOURCE -# define _GNU_SOURCE -#endif #include #include #include -- cgit v1.2.3-24-ge0c7