use sched_yield on Solaris

This commit is contained in:
Max Lv
2015-11-16 12:27:31 +08:00
parent e4c0bc9d27
commit 48cb9ad511
+1 -1
View File
@@ -511,7 +511,7 @@ cork_subprocess_is_finished(struct cork_subprocess *self)
#if defined(__APPLE__) || defined(__MINGW32__) || defined(__CYGWIN__)
#include <pthread.h>
#define THREAD_YIELD pthread_yield_np
#elif defined(__linux__) || defined(BSD)
#elif defined(__linux__) || defined(BSD) || defined(__sun)
#include <sched.h>
#define THREAD_YIELD sched_yield
#else