From 23e0d15ba4ea4368d72686e9a7001b399d68b358 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 3 Oct 2013 02:39:19 -0700 Subject: 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 --- term-utils/setterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'term-utils/setterm.c') diff --git a/term-utils/setterm.c b/term-utils/setterm.c index d41e335a8..f179ea8ac 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 -- cgit v1.2.3-55-g7522