From 80e69562be86d149d753530a8a57c5babbb3f4c3 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 5 Mar 2008 07:01:35 +0000 Subject: did some portability changes to make rsyslog compile on HP UX --- wtp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wtp.c') diff --git a/wtp.c b/wtp.c index 83cb5d5e..1c2ea30f 100644 --- a/wtp.c +++ b/wtp.c @@ -476,7 +476,9 @@ wtpStartWrkr(wtp_t *pThis, int bLockMutex) /* we try to give the starting worker a little boost. It won't help much as we still * hold the queue's mutex, but at least it has a chance to start on a single-CPU system. */ +# if !defined(__hpux) /* pthread_yield is missing there! */ pthread_yield(); +# endif /* indicate we just started a worker and would like to see it running */ wtpSetInactivityGuard(pThis, 1, MUTEX_ALREADY_LOCKED); -- cgit v1.2.3