summaryrefslogtreecommitdiffstats
path: root/0001-fix-cpu-affinity-check.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-02-03 08:47:18 +0100
committerRemi Collet <remi@php.net>2025-02-03 08:47:18 +0100
commit300418f98a81020ef17497fd0e961c5a7d8587f9 (patch)
treeb4db0313cc7132b7ad70c6041429424ae718fa95 /0001-fix-cpu-affinity-check.patch
parent8b0f5993eeb5b89003d16596ef59013297966191 (diff)
update to 25.2.0HEADmaster
re-license spec file to CECILL-2.1 fix cpu affinity check and futext check using patch from https://github.com/openswoole/ext-openswoole/pull/376 raise dependency on PHP 8.2 rename to php-pecl-openswoole25 for new API update to 25.2.0 re-license spec file to CECILL-2.1 fix cpu affinity check and futext check using patch from https://github.com/openswoole/ext-openswoole/pull/376 raise dependency on PHP 8.2 rename to php-pecl-openswoole25 for new API
Diffstat (limited to '0001-fix-cpu-affinity-check.patch')
-rw-r--r--0001-fix-cpu-affinity-check.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/0001-fix-cpu-affinity-check.patch b/0001-fix-cpu-affinity-check.patch
new file mode 100644
index 0000000..0f2f385
--- /dev/null
+++ b/0001-fix-cpu-affinity-check.patch
@@ -0,0 +1,31 @@
+From 4104a48da128cec17b9ffdc8d4a15c434e1499ec Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 3 Feb 2025 06:56:47 +0100
+Subject: [PATCH] fix cpu affinity check
+
+---
+ config.m4 | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/config.m4 b/config.m4
+index 729404684..f49e6a58f 100644
+--- a/config.m4
++++ b/config.m4
+@@ -129,6 +129,7 @@ AC_DEFUN([AC_SWOOLE_CPU_AFFINITY],
+ #include <sys/cpuset.h>
+ typedef cpuset_t cpu_set_t;
+ #else
++ #define _GNU_SOURCE 1
+ #include <sched.h>
+ #endif
+ ]], [[
+@@ -874,4 +875,4 @@ if test "$PHP_SWOOLE" != "no"; then
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php/sockets)
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php/standard)
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php/curl)
+-fi
+\ No newline at end of file
++fi
+--
+2.48.1
+