summaryrefslogtreecommitdiffstats
path: root/runtime/wti.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/wti.c')
-rw-r--r--runtime/wti.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/wti.c b/runtime/wti.c
index e8a77474..9b3450e6 100644
--- a/runtime/wti.c
+++ b/runtime/wti.c
@@ -39,6 +39,11 @@
#include <pthread.h>
#include <errno.h>
+#ifdef OS_SOLARIS
+# include <sched.h>
+# define pthread_yield() sched_yield()
+#endif
+
#include "rsyslog.h"
#include "stringbuf.h"
#include "srUtils.h"