summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r--Zend/zend_alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index c9ecc74111..97c10018c1 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -109,8 +109,12 @@ static void zend_mm_panic(const char *message)
#if defined(HAVE_MEM_MMAP_ANON) || defined(HAVE_MEM_MMAP_ZERO)
# ifdef HAVE_MREMAP
+# ifndef _GNU_SOURCE
# define _GNU_SOURCE
+# endif
+# ifndef __USE_GNU
# define __USE_GNU
+# endif
# endif
# include <sys/mman.h>
# ifndef MAP_ANON