about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-01-13 07:53:57 +0000
committerEric Wong <mwrap-perl@80x24.org>2023-01-13 07:55:51 +0000
commit0295f1f53fdcfa7f6cd6696525325f3d12f6a660 (patch)
treeefdbdf7030814f99e2a1c4258fd15f4ef7fe467e
parent223134c33d92dbdd4136335957d470c5861880b6 (diff)
downloadmwrap-0295f1f53fdcfa7f6cd6696525325f3d12f6a660.tar.gz
This is to make the Ruby version happy.
-rw-r--r--mwrap_core.h6
1 files 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 <execinfo.h>
 #include <stdio.h>
 #include <stdlib.h>