diff options
author | Stefan Eßer <se@FreeBSD.org> | 2022-01-03 10:45:57 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2022-01-03 10:45:57 +0000 |
commit | 2913605c79b25b88a4a21b3d93ec2ab11949eaaa (patch) | |
tree | dd09bc5b0c889cb91d3365b2a011c15de4ebcfb0 /net/haproxy | |
parent | 4141e008d68c788f6ac215d4a2299559a74dc686 (diff) | |
download | ports-2913605c79b25b88a4a21b3d93ec2ab11949eaaa.tar.gz ports-2913605c79b25b88a4a21b3d93ec2ab11949eaaa.zip |
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
Diffstat (limited to 'net/haproxy')
-rw-r--r-- | net/haproxy/files/patch-src_cpuset.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/haproxy/files/patch-src_cpuset.c b/net/haproxy/files/patch-src_cpuset.c new file mode 100644 index 000000000000..42f04b37e6f6 --- /dev/null +++ b/net/haproxy/files/patch-src_cpuset.c @@ -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; |