A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
[oweals/busybox.git] / sysklogd / klogd.c
index 95d4eea658d2d2c3fa5777103c674a7f061fdc54..241a99175fa8f4e1c4c6f81711e1c3f1207f17f3 100644 (file)
 #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)