BUILD: tools: include auxv a bit later
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Aug 2020 14:39:14 +0000 (16:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Aug 2020 14:41:55 +0000 (16:41 +0200)
commit3005306a7143f065f99b0231ed1f350b7226e898
treee6a2260ff7f083d1e1f1ae1417cd10fbfead2f3f
parent6d59993cb873185df881a0e30214302065c23491
BUILD: tools: include auxv a bit later

As reported in https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24745,
haproxy fails to build with TARGET=generic and without extra options due
to auxv.h not being included, since the __GLIBC__ macro is not yet defined.
Let's include it after other libc headers so that the __GLIBC__ definition
is known. Thanks to David and Tim for the diag.

This should be backported to 2.2.
src/tools.c