From 48cb9ad511392a997810f8c7dce8f23969529db6 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 16 Nov 2015 12:27:31 +0800 Subject: [PATCH] use sched_yield on Solaris --- libcork/posix/subprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcork/posix/subprocess.c b/libcork/posix/subprocess.c index 75f1c4e5..a3014662 100644 --- a/libcork/posix/subprocess.c +++ b/libcork/posix/subprocess.c @@ -511,7 +511,7 @@ cork_subprocess_is_finished(struct cork_subprocess *self) #if defined(__APPLE__) || defined(__MINGW32__) || defined(__CYGWIN__) #include #define THREAD_YIELD pthread_yield_np -#elif defined(__linux__) || defined(BSD) +#elif defined(__linux__) || defined(BSD) || defined(__sun) #include #define THREAD_YIELD sched_yield #else