config-unix: drop --std=c89 on cygwin, hides CLOCK_MONOTONIC.

Fixes #112.
This commit is contained in:
Ben Noordhuis 2011-07-20 17:58:27 +02:00
parent e6075842e8
commit ce5eb6d85a
2 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,8 @@ endif
ifneq (,$(findstring CYGWIN,$(uname_S)))
EV_CONFIG=config_cygwin.h
EIO_CONFIG=config_cygwin.h
# We drop the --std=c89, it hides CLOCK_MONOTONIC on cygwin
CSTDFLAG = -D_GNU_SOURCE
CPPFLAGS += -Isrc/ares/config_cygwin
LINKFLAGS+=
UV_OS_FILE=uv-cygwin.c

View File

@ -18,7 +18,9 @@
* IN THE SOFTWARE.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* O_CLOEXEC, accept4(), etc. */
#endif
#include "uv.h"
#include "uv-common.h"