Commit 1c298565a6b for php.net
commit 1c298565a6b53dba94509f007b69c7ae396d7f7b
Author: Levi Morrison <levi.morrison@datadoghq.com>
Date: Wed Aug 19 09:45:06 2026 -0600
Fix memfd_create config header inclusion
diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c
index c7ad96a2dfb..210f0b3ddfd 100644
--- a/ext/opcache/zend_shared_alloc.c
+++ b/ext/opcache/zend_shared_alloc.c
@@ -19,15 +19,11 @@
+----------------------------------------------------------------------+
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#if defined(__linux__) && defined(HAVE_MEMFD_CREATE)
-# ifndef _GNU_SOURCE
-# define _GNU_SOURCE
+#if defined(__linux__)
+# include <php_config.h>
+# if defined(HAVE_MEMFD_CREATE)
+# include <sys/mman.h>
# endif
-# include <sys/mman.h>
#endif
#include <errno.h>