Browse Source

fix compilation on cygwin

pull/100/head
Max Lv 10 years ago
parent
commit
e5b54753c7
2 changed files with 2 additions and 2 deletions
  1. 2
      libcork/include/libcork/config/config.h
  2. 2
      libcork/posix/subprocess.c

2
libcork/include/libcork/config/config.h

@ -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>

2
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 <pthread.h>
#define THREAD_YIELD pthread_yield_np
#elif defined(__linux__) || defined(BSD)

Loading…
Cancel
Save