From 1b6344e8e7c07625c2b2f7b5c1d4dab443497bd7 Mon Sep 17 00:00:00 2001 From: Alexander Stefanov Date: Fri, 9 Jun 2023 14:19:03 +0300 Subject: [PATCH] fix e2k build --- fix-include-e2k.patch | 12 ++++++++++++ php7.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 fix-include-e2k.patch diff --git a/fix-include-e2k.patch b/fix-include-e2k.patch new file mode 100644 index 0000000..516a35f --- /dev/null +++ b/fix-include-e2k.patch @@ -0,0 +1,12 @@ +diff --git a/ext/opcache/zend_accelerator_util_funcs.c b/ext/opcache/zend_accelerator_util_funcs.c +index 53efa865..d6975a44 100644 +--- a/ext/opcache/zend_accelerator_util_funcs.c ++++ b/ext/opcache/zend_accelerator_util_funcs.c +@@ -24,6 +24,7 @@ + #include "zend_accelerator_util_funcs.h" + #include "zend_persist.h" + #include "zend_shared_alloc.h" ++#include + + #if SIZEOF_SIZE_T <= SIZEOF_ZEND_LONG + /* If sizeof(void*) == sizeof(zend_ulong) we can use zend_hash index functions */ diff --git a/php7.spec b/php7.spec index b91e0bd..7f5a16b 100644 --- a/php7.spec +++ b/php7.spec @@ -88,6 +88,7 @@ Patch124: 0060-Fix-regression-introduced-by-fixing-bug-81726.patch Patch125: 0061-Fix-81727-Don-t-mangle-HTTP-variable-names-that-clas.patch # CVE-2022-37454 Patch126: 0062-Fix-bug-81738-buffer-overflow-in-hash_update-on-long.patch +Patch200: fix-include-e2k.patch BuildRequires: autoconf BuildRequires: automake @@ -1283,6 +1284,7 @@ fi %patch124 -p1 %patch125 -p1 %patch126 -p1 +%patch200 -p1 cp %{SOURCE2} maxlifetime cp %{SOURCE3} php.crond