BUILD: tools: properly guard __GLIBC__ with defined()
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Aug 2021 08:15:35 +0000 (10:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Aug 2021 08:16:30 +0000 (10:16 +0200)
commit7b2108cad1aa963dae663bdabb3840132afbe6b5
tree1693fb7a06c4be8a3a169c2ce6d71d885e2c32f1
parentb131049eb5ba5b0e7c02eea10ce9763da4428abe
BUILD: tools: properly guard __GLIBC__ with defined()

The test on the glibc versions based on #if (__GLIBC > 2 ...) fails to
build under -Wundef, let's prepend defined(__GLIBC__) first.
src/tools.c