BUILD: halog: fix a -Wundef warning on non-glibc systems
authorWilly Tarreau <w@1wt.eu>
Mon, 13 Sep 2021 07:32:01 +0000 (09:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 13 Sep 2021 07:32:01 +0000 (09:32 +0200)
commit80d3daad50144b22891bcfdd6356c57a21977ce1
tree0b1c70f6f167c175bc8b4ce45c636e1f7208bffc
parent8ac6597cbed48d8d727eb59427713099f815ccbb
BUILD: halog: fix a -Wundef warning on non-glibc systems

Dmitry reported this warning on FreeBSD since the introduction of -Wundef:

  admin/halog/fgets2.c:38:30: warning: '__GLIBC__' is not defined, evaluates to 0 [-Wundef]
  #if defined(__x86_64__) &&  (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 15))
                               ^
A defined() was missing.
admin/halog/fgets2.c