mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-18 01:14:38 +00:00
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.
This commit is contained in:
parent
8ac6597cbe
commit
80d3daad50
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user