From e5b54753c74c1ac202c18341d5fb09011e0596c8 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 30 Jul 2014 14:47:05 +0800 Subject: [PATCH] fix compilation on cygwin --- libcork/include/libcork/config/config.h | 2 +- libcork/posix/subprocess.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libcork/include/libcork/config/config.h b/libcork/include/libcork/config/config.h index 3a288572..077be5c8 100644 --- a/libcork/include/libcork/config/config.h +++ b/libcork/include/libcork/config/config.h @@ -40,7 +40,7 @@ #include #endif -#if defined(__linux) +#if defined(__linux) || defined(__CYGWIN__) /* Do some Linux-specific autodetection. */ #include diff --git a/libcork/posix/subprocess.c b/libcork/posix/subprocess.c index f2a2442d..75f1c4e5 100644 --- a/libcork/posix/subprocess.c +++ b/libcork/posix/subprocess.c @@ -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 #define THREAD_YIELD pthread_yield_np #elif defined(__linux__) || defined(BSD)