net/haproxy: fix build on -CURRENT
The CPU_SET macros in -CURRENT have been made compatible with GLIBC. A simple test for the new signature of CPU_AND, CPU_OR, ... is the existence of a CPU_ALLOC macro. Approved by: portmgr (implicit) MFH: 2022Q1
This commit is contained in:
parent
4141e008d6
commit
2913605c79
1 changed files with 14 additions and 0 deletions
14
net/haproxy/files/patch-src_cpuset.c
Normal file
14
net/haproxy/files/patch-src_cpuset.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- src/cpuset.c.orig 2021-12-23 16:47:51 UTC
|
||||
+++ src/cpuset.c
|
||||
@@ -53,7 +53,11 @@ void ha_cpuset_and(struct hap_cpuset *dst, const struc
|
||||
CPU_AND(&dst->cpuset, &dst->cpuset, &src->cpuset);
|
||||
|
||||
#elif defined(CPUSET_USE_FREEBSD_CPUSET)
|
||||
+#if defined(CPU_ALLOC)
|
||||
+ CPU_AND(&dst->cpuset, &dst->cpuset, &src->cpuset);
|
||||
+#else
|
||||
CPU_AND(&dst->cpuset, &src->cpuset);
|
||||
+#endif
|
||||
|
||||
#elif defined(CPUSET_USE_ULONG)
|
||||
dst->cpuset &= src->cpuset;
|
Loading…
Reference in a new issue