Skip to content

Commit 7d0e2d8

Browse files
authored
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.
1 parent a48ed12 commit 7d0e2d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ glob \
599599
localtime_r \
600600
lchown \
601601
memcntl \
602+
memfd_create \
602603
memmove \
603604
mkstemp \
604605
mmap \

ext/opcache/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ if test "$PHP_OPCACHE" != "no"; then
103103
fi
104104
fi
105105

106-
AC_CHECK_FUNCS([mprotect memfd_create shm_create_largepage])
106+
AC_CHECK_FUNCS([mprotect shm_create_largepage])
107107

108108
AC_MSG_CHECKING(for sysvipc shared memory support)
109109
AC_RUN_IFELSE([AC_LANG_SOURCE([[

0 commit comments

Comments
 (0)