summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-03-06 14:27:15 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-03-06 14:27:15 +0100
commitf67cf99ee5cd88bda499aa52d6008bb7d4afe483 (patch)
tree573c255913d1e2d758647ff7137560bd33770ed0 /runtime/queue.c
parent2e388db9ac91eae35ac836b329c8bcadd319a409 (diff)
downloadrsyslog-f67cf99ee5cd88bda499aa52d6008bb7d4afe483.tar.gz
rsyslog-f67cf99ee5cd88bda499aa52d6008bb7d4afe483.tar.xz
rsyslog-f67cf99ee5cd88bda499aa52d6008bb7d4afe483.zip
fixed a platform issue the prevented building on solaris
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 7d78460c..c4a0fad2 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -51,6 +51,11 @@
#include "wti.h"
#include "atomic.h"
+#ifdef OS_SOLARIS
+# include <sched.h>
+# define pthread_yield() sched_yield()
+#endif
+
/* static data */
DEFobjStaticHelpers
DEFobjCurrIf(glbl)