From: Paolo Bonzini Date: Fri, 12 Sep 2008 18:20:38 +0000 (+0200) Subject: fix test-poll compilation failure on Cygwin X-Git-Tag: v0.1~7061 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=a7c16e4cf6306739249469d4dd3a3fe3263c02f2;p=gnulib.git fix test-poll compilation failure on Cygwin 2008-09-12 Paolo Bonzini * modules/poll-tests: Do not check for io.h. * tests/test-poll.c: Check for __MSVCRT__ instead. --- diff --git a/ChangeLog b/ChangeLog index ac15d94e5..8d416fa99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-09-12 Paolo Bonzini + * modules/poll-tests: Do not check for io.h. + * tests/test-poll.c: Check for __MSVCRT__ instead. + +2008-09-12 Paolo Bonzini + * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case. * modules/poll-tests: Add inet_pton, stdbool, sockets. * tests/test-poll.c: Use them. Use _pipe on Windows. diff --git a/modules/poll-tests b/modules/poll-tests index 7c44a4883..33e277f6a 100644 --- a/modules/poll-tests +++ b/modules/poll-tests @@ -11,7 +11,7 @@ inet_pton sockets configure.ac: -AC_CHECK_HEADERS_ONCE([io.h unistd.h sys/wait.h]) +AC_CHECK_HEADERS_ONCE([unistd.h sys/wait.h]) Makefile.am: TESTS += test-poll diff --git a/tests/test-poll.c b/tests/test-poll.c index 0dbcb54fb..1f66a6385 100644 --- a/tests/test-poll.c +++ b/tests/test-poll.c @@ -31,7 +31,7 @@ #include #include "sockets.h" -#ifdef HAVE_IO_H +#ifdef __MSVCRT__ #include #define pipe(x) _pipe(x, 256, O_BINARY) #endif