[PATCH 4/4] Fix check for __GNU_LIBRARY__

Michael Forney
2013-10-03T09:39:31Z

If we are not on glibc, __GNU_LIBRARY__ will not exist causing the check
to always fail and try to use syscalls directly.
---
term-utils/setterm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/term-utils/setterm.c b/term-utils/setterm.c
index d41e335..f179ea8 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
--
1.8.4