diff options
Diffstat (limited to 'dmesg.c')
-rw-r--r-- | dmesg.c | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -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 | ||
27 | static 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 | ||
37 | int dmesg_main(int argc, char **argv) | 32 | int dmesg_main(int argc, char **argv) |