summaryrefslogtreecommitdiffstats
path: root/0001-fix-cpu-affinity-check.patch
blob: 58c4370c6eea896c4a618fa10e069ea9611d3761 (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
From 5630753cba195133a741d6f768143e40ff7454f6 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 16 Dec 2024 09:28:53 +0100
Subject: [PATCH] fix cpu affinity check

---
 config.m4 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config.m4 b/config.m4
index ada2e983b..701eaa569 100644
--- a/config.m4
+++ b/config.m4
@@ -183,6 +183,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
     ]], [[
-- 
2.47.1