diff options
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 @@ #include <ctype.h> #include <sys/syslog.h> -#if ! defined __GLIBC__ && ! defined __UCLIBC__ -#include <sys/syscall.h> -#include <linux/unistd.h> - -#ifndef __alpha__ -# define __NR_klogctl __NR_syslog -static inline _syscall3(int, klogctl, int, type, char *, b, int, len); -#else /* __alpha__ */ -#define klogctl syslog -#endif - +#if __GNU_LIBRARY__ < 5 +# ifdef __alpha__ +# define klogctl syslog +# endif #else # include <sys/klog.h> #endif + #include "busybox.h" static void klogd_signal(int sig) |