]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD/MINOR: cpuset FreeBSD 14 build fix.
authorDavid CARLIER <devnexen@gmail.com>
Fri, 31 Dec 2021 05:00:12 +0000 (05:00 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 31 Dec 2021 06:17:37 +0000 (07:17 +0100)
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.

include/haproxy/cpuset-t.h

index b26da724545a66aea62bc3d36c1a4b2e180cfa00..5f812aa17aa3c135a398e774122038119a0fbaa7 100644 (file)
 #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__)