summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imklog/imklog.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c
index 46c78e70..2731e08d 100644
--- a/plugins/imklog/imklog.c
+++ b/plugins/imklog/imklog.c
@@ -67,15 +67,19 @@ static int console_log_level = -1;
#include <errno.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
-#if !defined(__GLIBC__)
-#include <linux/time.h>
-#endif /* __GLIBC__ */
+
+#if HAVE_TIME_H
+# include <time.h>
+#endif
+
#include <stdarg.h>
#include <paths.h>
#include "ksyms.h"
#define __LIBRARY__
-#include <linux/unistd.h>
+#include <unistd.h>
+
+
#if !defined(__GLIBC__)
# define __NR_ksyslog __NR_syslog
_syscall3(int,ksyslog,int, type, char *, buf, int, len);
@@ -84,6 +88,8 @@ _syscall3(int,ksyslog,int, type, char *, buf, int, len);
#define ksyslog klogctl
#endif
+
+
#ifndef _PATH_KLOG
#define _PATH_KLOG "/proc/kmsg"
#endif