Teach libc5 what a sighandler_t is
[oweals/busybox.git] / dmesg.c
diff --git a/dmesg.c b/dmesg.c
index 2c85ed3e97c7706e65176c47930ea8fe0782ac63..73de6d1ae9ba84bf65f72f34b1f713b97fd208be 100644 (file)
--- a/dmesg.c
+++ b/dmesg.c
 #include <getopt.h>
 
 #if __GNU_LIBRARY__ < 5
-#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
-
+# ifdef __alpha__
+#   define klogctl syslog
+# endif
 #else
 # include <sys/klog.h>
 #endif
+
 #include "busybox.h"
 
 int dmesg_main(int argc, char **argv)