commit 956a111dfa69dee52e6073436ed1b1da94c6e0c2 Author: Jan Palus <at...@pld-linux.org> Date: Thu Jan 23 12:55:49 2025 +0100
fix readdir_r signature detection php.spec | 2 ++ readdir_r.patch | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) --- diff --git a/php.spec b/php.spec index bfb63cc..8d2f333 100644 --- a/php.spec +++ b/php.spec @@ -248,6 +248,7 @@ Patch74: php-icu64.patch Patch75: icu69.patch Patch76: icu70.patch Patch77: libxml2-2.12.patch +Patch78: readdir_r.patch URL: https://www.php.net/ %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}} %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0} @@ -2184,6 +2185,7 @@ exit 1 %patch -P75 -p1 %patch -P76 -p1 %patch -P77 -p1 +%patch -P78 -p1 sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \ run-tests.php diff --git a/readdir_r.patch b/readdir_r.patch new file mode 100644 index 0000000..4359425 --- /dev/null +++ b/readdir_r.patch @@ -0,0 +1,17 @@ +--- php-7.2.34/acinclude.m4.orig 2025-01-23 20:45:18.432571977 +0100 ++++ php-7.2.34/acinclude.m4 2025-01-23 20:54:20.252520613 +0100 +@@ -1349,12 +1349,13 @@ + #define _REENTRANT + #include <sys/types.h> + #include <dirent.h> ++#include <stdlib.h> + + #ifndef PATH_MAX + #define PATH_MAX 1024 + #endif + +-main() { ++int main() { + DIR *dir; + char entry[sizeof(struct dirent)+PATH_MAX]; + struct dirent *pentry = (struct dirent *) &entry; ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/63190b085150bb79f9e681060b20f959d11f556d _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit