From 7d0e2d8e4d0c13299afb6643a5ba94ce1826231e Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 1 Mar 2024 17:17:28 +0100 Subject: [PATCH] Add missing memfd_create Autoconf check for bundled pcre2lib (#13561) This moves memfd_create (HAVE_MEMFD_CREATE) to configure.ac. Since ext/pcre is always enabled and check can be done in this case for ext/pcre and ext/opcache at once. --- configure.ac | 1 + ext/opcache/config.m4 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c6aa8b400b1..bfbe7091af2 100644 --- a/configure.ac +++ b/configure.ac @@ -599,6 +599,7 @@ glob \ localtime_r \ lchown \ memcntl \ +memfd_create \ memmove \ mkstemp \ mmap \ diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 index 708a8218196..4ac92739dd4 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 @@ -103,7 +103,7 @@ if test "$PHP_OPCACHE" != "no"; then fi fi - AC_CHECK_FUNCS([mprotect memfd_create shm_create_largepage]) + AC_CHECK_FUNCS([mprotect shm_create_largepage]) AC_MSG_CHECKING(for sysvipc shared memory support) AC_RUN_IFELSE([AC_LANG_SOURCE([[