summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-06 17:39:09 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-06 17:39:09 +0000
commitae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664 (patch)
treeef3d6dbbb8fe7268cd2a922a5de3e17f0814fc1e /plugins
parent9c0d5b9e4b119e6034a60a69def51c0621c3a299 (diff)
downloadrsyslog-ae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664.tar.gz
rsyslog-ae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664.tar.xz
rsyslog-ae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664.zip
some minor things in regard to portability
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