diff options
author | Michael Forney | 2013-10-03 11:39:19 +0200 |
---|---|---|
committer | Karel Zak | 2013-10-04 11:51:45 +0200 |
commit | 23e0d15ba4ea4368d72686e9a7001b399d68b358 (patch) | |
tree | f07dea6c0355eff256248e286282107515fb632a /term-utils/setterm.c | |
parent | build-sys: Check for type sighandler_t and use if present (diff) | |
download | kernel-qcow2-util-linux-23e0d15ba4ea4368d72686e9a7001b399d68b358.tar.gz kernel-qcow2-util-linux-23e0d15ba4ea4368d72686e9a7001b399d68b358.tar.xz kernel-qcow2-util-linux-23e0d15ba4ea4368d72686e9a7001b399d68b358.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'term-utils/setterm.c')
-rw-r--r-- | term-utils/setterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <linux/unistd.h> #define __NR_klogctl __NR_syslog |