fix compilation on cygwin

This commit is contained in:
Max Lv
2014-07-30 14:47:05 +08:00
parent dc9f18a2d8
commit e5b54753c7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
#include <sys/param.h>
#endif
#if defined(__linux)
#if defined(__linux) || defined(__CYGWIN__)
/* Do some Linux-specific autodetection. */
#include <libcork/config/linux.h>
+1 -1
View File
@@ -508,7 +508,7 @@ cork_subprocess_is_finished(struct cork_subprocess *self)
&& cork_read_pipe_is_finished(&self->stderr_pipe);
}
#if defined(__APPLE__) || defined(__MINGW32__)
#if defined(__APPLE__) || defined(__MINGW32__) || defined(__CYGWIN__)
#include <pthread.h>
#define THREAD_YIELD pthread_yield_np
#elif defined(__linux__) || defined(BSD)