diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-07 09:37:43 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-07 09:37:43 +0000 |
commit | 02ca960691b02f75019a46ba778bb10cf0bdd2e6 (patch) | |
tree | 157af95ae47063559675f5959971419a90860843 /syslogd.c | |
parent | acb7dae3ae782dae451f2f7a2322138ee495244a (diff) | |
download | rsyslog-02ca960691b02f75019a46ba778bb10cf0bdd2e6.tar.gz rsyslog-02ca960691b02f75019a46ba778bb10cf0bdd2e6.tar.xz rsyslog-02ca960691b02f75019a46ba778bb10cf0bdd2e6.zip |
applied patch from Michel Samia to fix compilation when the pthreads
feature is disabled
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } /* |