summaryrefslogtreecommitdiffstats
path: root/0001-fix-cpu-affinity-check.patch
blob: 0f2f385ed45fad0d07af992ec7ccadfac9469483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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