Skip to content

Commit 1c29856

Browse files
committed
Fix memfd_create config header inclusion
1 parent b02e38a commit 1c29856

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎ext/opcache/zend_shared_alloc.c‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@
1919
+----------------------------------------------------------------------+
2020
*/
2121

22-
#ifdef HAVE_CONFIG_H
23-
# include <config.h>
24-
#endif
25-
26-
#if defined(__linux__) && defined(HAVE_MEMFD_CREATE)
27-
# ifndef _GNU_SOURCE
28-
# define _GNU_SOURCE
22+
#if defined(__linux__)
23+
# include <php_config.h>
24+
# if defined(HAVE_MEMFD_CREATE)
25+
# include <sys/mman.h>
2926
# endif
30-
# include <sys/mman.h>
3127
#endif
3228

3329
#include <errno.h>

0 commit comments

Comments
 (0)