mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 08:23:47 +00:00
fix compilation on cygwin
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user