From e76c3b08e105147e3cef7e8d38d65da2fac6b2e1 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 5 Apr 2001 03:14:39 +0000 Subject: 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 --- sysklogd/klogd.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'sysklogd') diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 95d4eea..241a991 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c @@ -40,20 +40,14 @@ #include #include -#if ! defined __GLIBC__ && ! defined __UCLIBC__ -#include -#include - -#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 #endif + #include "busybox.h" static void klogd_signal(int sig) -- cgit v1.1