From 5a6c89661a96fa2139fa0cff07de2f2eff369127 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 12 Sep 2006 01:17:16 +0000 Subject: Cygwin preprocessor adjustments --- tests/libtest/first.c | 2 +- tests/libtest/lib518.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/libtest') diff --git a/tests/libtest/first.c b/tests/libtest/first.c index fda1a7fb5..8050537db 100644 --- a/tests/libtest/first.c +++ b/tests/libtest/first.c @@ -12,7 +12,7 @@ int test(char *url); int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, struct timeval *tv) { -#ifdef WIN32 +#if defined(WIN32) && !defined(__CYGWIN__) /* Winsock doesn't like no socket set in 'rd', 'wr' or 'exc'. This is * case when 'num_fds <= 0. So sleep. */ diff --git a/tests/libtest/lib518.c b/tests/libtest/lib518.c index 1c858ee35..d0c200774 100644 --- a/tests/libtest/lib518.c +++ b/tests/libtest/lib518.c @@ -32,7 +32,7 @@ #define NUM_OPEN (FD_SETSIZE + 10) #define NUM_NEEDED (NUM_OPEN + 16) -#if defined(WIN32) || defined(_WIN32) || defined(MSDOS) +#if (defined(WIN32) || defined(_WIN32) || defined(MSDOS)) && !defined(__CYGWIN__) #define DEV_NULL "NUL" #else #define DEV_NULL "/dev/null" -- cgit v1.2.3