From 5423ccb1a1306fb615ce790a635c8a291dedd170 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Thu, 24 Jul 2008 13:44:44 +0200 Subject: [PATCH] dmesg: nuke old glibc 5 support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘klogctl’ dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘type’ dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘b’ dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘len’ without belows compat section dmesg just compiles fine against klibc. as bonus reorder the includes. Signed-off-by: maximilian attems --- sys-utils/dmesg.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index d7adc0ae..ac0535d7 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -33,20 +33,9 @@ #include #include #include -#include "nls.h" - -#if __GNU_LIBRARY__ < 5 - -#ifndef __alpha__ -# define __NR_klogctl __NR_syslog - static inline _syscall3(int, klogctl, int, type, char *, b, int, len); -#else /* __alpha__ */ -#define klogctl syslog -#endif - -#else # include -#endif + +#include "nls.h" static char *progname; -- 2.39.5