From 02ca960691b02f75019a46ba778bb10cf0bdd2e6 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 7 Aug 2007 09:37:43 +0000 Subject: applied patch from Michel Samia to fix compilation when the pthreads feature is disabled --- syslogd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'syslogd.c') diff --git a/syslogd.c b/syslogd.c index 4c031ea7..2bd3206f 100644 --- a/syslogd.c +++ b/syslogd.c @@ -2235,6 +2235,7 @@ static void logmsgInternal(int pri, char *msg, int flags) getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */ flags |= INTERNAL_MSG; +#ifdef USE_PTHREADS if(bRunningMultithreaded == 0) { /* not yet in queued mode */ iminternalAddMsg(pri, pMsg, flags); } else { @@ -2244,6 +2245,9 @@ static void logmsgInternal(int pri, char *msg, int flags) logmsg(pri, pMsg, flags); MsgDestruct(pMsg); } +#else + iminternalAddMsg(pri, pMsg, flags); +#endif } /* -- cgit