diff options
Diffstat (limited to 'klogd.c')
-rw-r--r-- | klogd.c | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -40,20 +40,14 @@ | |||
40 | #include <ctype.h> | 40 | #include <ctype.h> |
41 | #include <sys/syslog.h> | 41 | #include <sys/syslog.h> |
42 | 42 | ||
43 | #if ! defined __GLIBC__ && ! defined __UCLIBC__ | 43 | #if __GNU_LIBRARY__ < 5 |
44 | #include <sys/syscall.h> | 44 | # ifdef __alpha__ |
45 | #include <linux/unistd.h> | 45 | # define klogctl syslog |
46 | 46 | # endif | |
47 | #ifndef __alpha__ | ||
48 | # define __NR_klogctl __NR_syslog | ||
49 | static inline _syscall3(int, klogctl, int, type, char *, b, int, len); | ||
50 | #else /* __alpha__ */ | ||
51 | #define klogctl syslog | ||
52 | #endif | ||
53 | |||
54 | #else | 47 | #else |
55 | # include <sys/klog.h> | 48 | # include <sys/klog.h> |
56 | #endif | 49 | #endif |
50 | |||
57 | #include "busybox.h" | 51 | #include "busybox.h" |
58 | 52 | ||
59 | static void klogd_signal(int sig) | 53 | static void klogd_signal(int sig) |