From a7c16e4cf6306739249469d4dd3a3fe3263c02f2 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini <bonzini@gnu.org> Date: Fri, 12 Sep 2008 20:20:38 +0200 Subject: [PATCH] fix test-poll compilation failure on Cygwin 2008-09-12 Paolo Bonzini <bonzini@gnu.org> * 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 ac15d94e55..8d416fa997 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-09-12 Paolo Bonzini <bonzini@gnu.org> + + * modules/poll-tests: Do not check for io.h. + * tests/test-poll.c: Check for __MSVCRT__ instead. + 2008-09-12 Paolo Bonzini <bonzini@gnu.org> * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case. diff --git a/modules/poll-tests b/modules/poll-tests index 7c44a4883e..33e277f6ac 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 0dbcb54fbe..1f66a63857 100644 --- a/tests/test-poll.c +++ b/tests/test-poll.c @@ -31,7 +31,7 @@ #include <errno.h> #include "sockets.h" -#ifdef HAVE_IO_H +#ifdef __MSVCRT__ #include <io.h> #define pipe(x) _pipe(x, 256, O_BINARY) #endif -- 2.30.2