]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: Fix check for __GNU_LIBRARY__
authorMichael Forney <mforney@mforney.org>
Thu, 3 Oct 2013 09:39:19 +0000 (02:39 -0700)
committerKarel Zak <kzak@redhat.com>
Fri, 4 Oct 2013 09:51:45 +0000 (11:51 +0200)
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>
term-utils/setterm.c

index d41e335a89bc94a1759867ccd560fda29a14931d..f179ea8acd6cee9318ee5a87c9a82a26ce88baa0 100644 (file)
 #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