BUILD: fix kFreeBSD build.
authorDavid Carlier <devnexen@gmail.com>
Fri, 4 Mar 2022 15:50:48 +0000 (15:50 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Mar 2022 09:52:34 +0000 (10:52 +0100)
commitb82c42b2d1aa184b41508085790db65f4e35516f
treeec65a8d8f496ae42980ac5b58268c774ad48a7c8
parent2538f4a15bcf71bb4da19247aa3c3f854be670da
BUILD: fix kFreeBSD build.

kFreeBSD needs to be treated as a distinct target from FreeBSD
since the underlying system libc is the GNU one. Thus, relying
only on __GLIBC__ no longer suffice.

- freebsd-glibc new target, key difference is including crypt.h
  and linking to libdl like linux.
- cpu affinity available but the api is still the FreeBSD's.
- enabling auxiliary data access only for Linux.

Patch based on preliminary work done by @bigon.

closes #1555

(cherry picked from commit 43a568575f9c14ce57ab437602dbdc089574cc33)
Signed-off-by: Willy Tarreau <w@1wt.eu>
Makefile
include/haproxy/cpuset-t.h
src/tools.c