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.
This commit is contained in:
David CARLIER 2021-12-31 05:00:12 +00:00 committed by Willy Tarreau
parent acd546b07c
commit f645047168

View File

@ -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__)