aboutsummaryrefslogtreecommitdiff
path: root/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmesg.c')
-rw-r--r--dmesg.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/dmesg.c b/dmesg.c
index 2c85ed3e9..73de6d1ae 100644
--- a/dmesg.c
+++ b/dmesg.c
@@ -20,18 +20,13 @@
20#include <getopt.h> 20#include <getopt.h>
21 21
22#if __GNU_LIBRARY__ < 5 22#if __GNU_LIBRARY__ < 5
23#include <sys/syscall.h> 23# ifdef __alpha__
24#include <linux/unistd.h> 24# define klogctl syslog
25#ifndef __alpha__ 25# endif
26# define __NR_klogctl __NR_syslog
27static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
28#else /* __alpha__ */
29#define klogctl syslog
30#endif
31
32#else 26#else
33# include <sys/klog.h> 27# include <sys/klog.h>
34#endif 28#endif
29
35#include "busybox.h" 30#include "busybox.h"
36 31
37int dmesg_main(int argc, char **argv) 32int dmesg_main(int argc, char **argv)