void-packages/srcpkgs/php8.0/patches/php-opcache-cross.patch

15 lines
581 B
Diff

diff --git a/configure b/configure.new
index 1159224b4c..29f763aa05 100755
--- a/configure
+++ b/configure.new
@@ -51689,7 +51689,8 @@ $as_echo "$have_shm_ipc" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5
$as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; }
if test "$cross_compiling" = yes; then :
- have_shm_mmap_anon=no
+$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h
+ have_shm_mmap_anon=yes
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */