From: David CARLIER Date: Fri, 31 Dec 2021 05:00:12 +0000 (+0000) Subject: BUILD/MINOR: cpuset FreeBSD 14 build fix. X-Git-Tag: v2.6-dev1~208 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f64504716843f69a9b10582b2d9cce6a7919795a;p=thirdparty%2Fhaproxy.git BUILD/MINOR: cpuset FreeBSD 14 build fix. The 14th release started to introduce api compatibility layer with Linux for the cpuset part and doing so irrevocably change the CPU* macros as well. --- diff --git a/include/haproxy/cpuset-t.h b/include/haproxy/cpuset-t.h index b26da72454..5f812aa17a 100644 --- a/include/haproxy/cpuset-t.h +++ b/include/haproxy/cpuset-t.h @@ -24,7 +24,12 @@ #elif defined(__FreeBSD__) || defined(__NetBSD__) # define CPUSET_REPR cpuset_t -# define CPUSET_USE_FREEBSD_CPUSET + +# if defined(__FreeBSD__) && __FreeBSD_version >= 1400046 +# define CPUSET_USE_CPUSET +# else +# define CPUSET_USE_FREEBSD_CPUSET +# endif #elif defined(__APPLE__)