From ae3e3e9cb1584b5cf7082c1b28c4cbbd48b1f664 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 6 Mar 2008 17:39:09 +0000 Subject: some minor things in regard to portability --- plugins/imklog/imklog.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'plugins') 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 #include #include -#if !defined(__GLIBC__) -#include -#endif /* __GLIBC__ */ + +#if HAVE_TIME_H +# include +#endif + #include #include #include "ksyms.h" #define __LIBRARY__ -#include +#include + + #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 -- cgit