--- fe-connect.c.orig Thu Mar 29 15:40:11 2001 +++ fe-connect.c Thu Mar 29 15:10:10 2001 @@ -916,7 +916,7 @@ connectDBStart(PGconn *conn) * * Ewan Mellor . */ -#if (!defined(WIN32) || defined(WIN32_NON_BLOCKING_CONNECTIONS)) && !defined(USE_SSL) +#if (!defined(WIN32) && !defined(__CYGWIN__) || defined(WIN32_NON_BLOCKING_CONNECTIONS)) && !defined(USE_SSL) if (connectMakeNonblocking(conn) == 0) goto connect_errReturn; #endif @@ -1036,7 +1036,7 @@ connectDBStart(PGconn *conn) * This makes the connection non-blocking, for all those cases which * forced us not to do it above. */ -#if (defined(WIN32) && !defined(WIN32_NON_BLOCKING_CONNECTIONS)) || defined(USE_SSL) +#if ((defined(WIN32) || defined(__CYGWIN__) && !defined(WIN32_NON_BLOCKING_CONNECTIONS))) || defined(USE_SSL) if (connectMakeNonblocking(conn) == 0) goto connect_errReturn; #endif