[PHP-CVS] [php-src] PHP-8.5: Fix memfd_create config header inclusion
[email protected] (Levi Morrison)
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Levi Morrison (morrisonlevi)
Date: 2026-08-19T09:53:43-06:00
Commit: https://github.com/php/php-src/commit/1c298565a6b53dba94509f007b69c7ae396d7f7b
Raw diff: https://github.com/php/php-src/commit/1c298565a6b53dba94509f007b69c7ae396d7f7b.diff
Fix memfd_create config header inclusion
Changed paths:
M ext/opcache/zend_shared_alloc.c
Diff:
diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c
index c7ad96a2dfb2..210f0b3ddfdb 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>