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.

(cherry picked from commit 80d3daad50144b22891bcfdd6356c57a21977ce1)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/admin/halog/fgets2.c b/admin/halog/fgets2.c
index 3634f55..62f1070 100644
--- a/admin/halog/fgets2.c
+++ b/admin/halog/fgets2.c
@@ -35,7 +35,7 @@
 #endif
 
 /* memchr() is faster in glibc with SSE since commit 093ecf92998de2 */
-#if defined(__x86_64__) &&  (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 15))
+#if defined(__x86_64__) && defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 15))
 #define USE_MEMCHR
 #endif