From: Michael Forney Date: Thu, 3 Oct 2013 09:39:19 +0000 (-0700) Subject: build-sys: Fix check for __GNU_LIBRARY__ X-Git-Tag: v2.24-rc2~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23e0d15ba4ea4368d72686e9a7001b399d68b358;p=thirdparty%2Futil-linux.git build-sys: Fix check for __GNU_LIBRARY__ If we are not on glibc, __GNU_LIBRARY__ will not exist causing the check to always fail and try to use syscalls directly. Signed-off-by: Karel Zak --- diff --git a/term-utils/setterm.c b/term-utils/setterm.c index d41e335a89..f179ea8acd 100644 --- a/term-utils/setterm.c +++ b/term-utils/setterm.c @@ -124,7 +124,7 @@ #include "nls.h" #include "closestream.h" -#if __GNU_LIBRARY__ < 5 +#if defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ < 5 #ifndef __alpha__ # include #define __NR_klogctl __NR_syslog