summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
authormaximilian attems2008-07-24 13:44:44 +0200
committerKarel Zak2008-07-28 11:06:50 +0200
commit5423ccb1a1306fb615ce790a635c8a291dedd170 (patch)
tree3523bc7c47d51577347aa719bd4b37cc4deb968f /sys-utils/dmesg.c
parentdisk-utils: s/MOUNTED/_PATH_MOUNTED/ (diff)
downloadkernel-qcow2-util-linux-5423ccb1a1306fb615ce790a635c8a291dedd170.tar.gz
kernel-qcow2-util-linux-5423ccb1a1306fb615ce790a635c8a291dedd170.tar.xz
kernel-qcow2-util-linux-5423ccb1a1306fb615ce790a635c8a291dedd170.zip
dmesg: nuke old glibc 5 support
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 <max@stro.at>
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r--sys-utils/dmesg.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index d7adc0aef..ac0535d78 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -33,20 +33,9 @@
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
-#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 <sys/klog.h>
-#endif
+
+#include "nls.h"
static char *progname;