diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index a7c7977066c9c..cfa22f6107097 100644 --- a/ext/opcache/zend_shared_alloc.c +++ b/ext/opcache/zend_shared_alloc.c @@ -19,13 +19,6 @@ +----------------------------------------------------------------------+ */ -#if defined(__linux__) && defined(HAVE_MEMFD_CREATE) -# ifndef _GNU_SOURCE -# define _GNU_SOURCE -# endif -# include -#endif - #include #include "ZendAccelerator.h" #include "zend_shared_alloc.h" @@ -40,7 +33,7 @@ # include #endif -#ifdef HAVE_MPROTECT +#if defined(HAVE_MPROTECT) || defined(HAVE_MEMFD_CREATE) # include "sys/mman.h" #endif