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)