aboutsummaryrefslogtreecommitdiff
path: root/klogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'klogd.c')
-rw-r--r--klogd.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/klogd.c b/klogd.c
index 95d4eea65..241a99175 100644
--- a/klogd.c
+++ b/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
49static 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
59static void klogd_signal(int sig) 53static void klogd_signal(int sig)