Browse Source

use sched_yield on Solaris

pull/465/head
Max Lv 9 years ago
parent
commit
48cb9ad511
1 changed files with 1 additions and 1 deletions
  1. 2
      libcork/posix/subprocess.c

2
libcork/posix/subprocess.c

@ -511,7 +511,7 @@ cork_subprocess_is_finished(struct cork_subprocess *self)
#if defined(__APPLE__) || defined(__MINGW32__) || defined(__CYGWIN__) #if defined(__APPLE__) || defined(__MINGW32__) || defined(__CYGWIN__)
#include <pthread.h> #include <pthread.h>
#define THREAD_YIELD pthread_yield_np #define THREAD_YIELD pthread_yield_np
#elif defined(__linux__) || defined(BSD)
#elif defined(__linux__) || defined(BSD) || defined(__sun)
#include <sched.h> #include <sched.h>
#define THREAD_YIELD sched_yield #define THREAD_YIELD sched_yield
#else #else

Loading…
Cancel
Save