diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-05 03:14:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-05 03:14:39 +0000 |
commit | e76c3b08e105147e3cef7e8d38d65da2fac6b2e1 (patch) | |
tree | 87f705b9e4e4e48700ac61e9538c637ae2b395a7 /sysklogd/klogd.c | |
parent | 3c0364f3911ec9f43e1c8c96ec2c8e30b1b52c47 (diff) | |
download | busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.gz busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.bz2 busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.zip |
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can
handle them sanely and all at once.
-Erik
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r-- | sysklogd/klogd.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 95d4eea65..241a99175 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c | |||
@@ -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) |