From a7c16e4cf6306739249469d4dd3a3fe3263c02f2 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 12 Sep 2008 20:20:38 +0200 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ modules/poll-tests | 2 +- tests/test-poll.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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 -- 2.11.0