Another update from Larry:
[oweals/busybox.git] / klogd.c
diff --git a/klogd.c b/klogd.c
index 95d4eea658d2d2c3fa5777103c674a7f061fdc54..d7b54e9c83b39c01295678a7fdbde8d95902cfe3 100644 (file)
--- a/klogd.c
+++ b/klogd.c
 #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)
@@ -82,7 +76,7 @@ static void doKlogd (void)
        /* "Open the log. Currently a NOP." */
        klogctl(1, NULL, 0);
 
-       syslog_msg(LOG_DAEMON, 0, "klogd started: BusyBox v" BB_VER " (" BB_BT ")");
+       syslog_msg(LOG_DAEMON, 0, "klogd started: " BB_BANNER);
 
        while (1) {
                /* Use kernel syscalls */