From: Paolo Bonzini Date: Fri, 12 Sep 2008 18:20:38 +0000 (+0200) Subject: fix test-poll compilation failure on Cygwin X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7c16e4cf6306739249469d4dd3a3fe3263c02f2;p=pspp 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 ac15d94e55..8d416fa997 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. 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 #include "sockets.h" -#ifdef HAVE_IO_H +#ifdef __MSVCRT__ #include #define pipe(x) _pipe(x, 256, O_BINARY) #endif