diff -rup libxml2-2.3.9-old/include/libxml/xmlversion.h libxml2-2.3.9/include/libxml/xmlversion.h
--- libxml2-2.3.9-old/include/libxml/xmlversion.h	Sun May 20 01:02:56 2001
+++ libxml2-2.3.9/include/libxml/xmlversion.h	Sat May 26 21:37:26 2001
@@ -129,8 +129,8 @@ extern void xmlCheckVersion(int version)
  *
  * Whether iconv support is available
  */
-#ifndef WIN32
-#if 1
+#if !defined(WIN32) || defined(__CYGWIN__)
+#if 0
 #define LIBXML_ICONV_ENABLED
 #else
 #define LIBXML_ICONV_DISABLED
diff -rup libxml2-2.3.9-old/include/libxml/xmlversion.h.in libxml2-2.3.9/include/libxml/xmlversion.h.in
--- libxml2-2.3.9-old/include/libxml/xmlversion.h.in	Sun May 20 01:00:09 2001
+++ libxml2-2.3.9/include/libxml/xmlversion.h.in	Sat May 26 21:21:49 2001
@@ -129,7 +129,7 @@ extern void xmlCheckVersion(int version)
  *
  * Whether iconv support is available
  */
-#ifndef WIN32
+#if !defined(WIN32) || defined(__CYGWIN__)
 #if @WITH_ICONV@
 #define LIBXML_ICONV_ENABLED
 #else
Only in libxml2-2.3.9/include/libxml: xmlversion.h.in~
Only in libxml2-2.3.9: libxml
diff -rup libxml2-2.3.9-old/libxml.h libxml2-2.3.9/libxml.h
--- libxml2-2.3.9-old/libxml.h	Sun Apr 22 02:57:25 2001
+++ libxml2-2.3.9/libxml.h	Sat May 26 21:22:18 2001
@@ -9,7 +9,7 @@
 #ifndef __XML_LIBXML_H__
 #define __XML_LIBXML_H__
 
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
 #include "win32config.h"
 #else
 #include "config.h"
Only in libxml2-2.3.9: libxml.h~
diff -rup libxml2-2.3.9-old/parser.c libxml2-2.3.9/parser.c
--- libxml2-2.3.9-old/parser.c	Thu May 17 12:35:07 2001
+++ libxml2-2.3.9/parser.c	Sat May 26 21:22:58 2001
@@ -35,7 +35,7 @@
 
 #include "libxml.h"
 
-#ifdef WIN32
+#if defined(WIN32) && !defined (__CYGWIN__)
 #define XML_DIR_SEP '\\'
 #else
 #define XML_DIR_SEP '/'
Only in libxml2-2.3.9: parser.c~
diff -rup libxml2-2.3.9-old/parserInternals.c libxml2-2.3.9/parserInternals.c
--- libxml2-2.3.9-old/parserInternals.c	Tue May  8 12:35:06 2001
+++ libxml2-2.3.9/parserInternals.c	Sat May 26 21:23:25 2001
@@ -9,7 +9,7 @@
 
 #include "libxml.h"
 
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
 #define XML_DIR_SEP '\\'
 #else
 #define XML_DIR_SEP '/'
Only in libxml2-2.3.9: parserInternals.c~
diff -rup libxml2-2.3.9-old/strio.c libxml2-2.3.9/strio.c
--- libxml2-2.3.9-old/strio.c	Sun Apr 22 12:35:07 2001
+++ libxml2-2.3.9/strio.c	Sat May 26 21:24:11 2001
@@ -22,7 +22,7 @@
  
 static const char rcsid[] = "@(#)$Id: strio.c,v 1.3 2001/04/21 16:57:25 breese Exp $";
 
-#if defined(unix) || defined(__xlC__)
+#if defined(unix) || defined(__xlC__) || defined(__CYGWIN__)
 # define PLATFORM_UNIX
 #elif defined(WIN32) || defined(_WIN32)
 # define PLATFORM_WIN32
Only in libxml2-2.3.9: strio.c~
diff -rup libxml2-2.3.9-old/uri.c libxml2-2.3.9/uri.c
--- libxml2-2.3.9-old/uri.c	Sun Apr 22 12:35:09 2001
+++ libxml2-2.3.9/uri.c	Sat May 26 21:56:23 2001
@@ -10,7 +10,7 @@
 
 #include "libxml.h"
 
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
 #define INCLUDE_WINSOCK
 #endif
 
Only in libxml2-2.3.9: uri.c~
diff -rup libxml2-2.3.9-old/xmlIO.c libxml2-2.3.9/xmlIO.c
--- libxml2-2.3.9-old/xmlIO.c	Fri May 11 12:35:06 2001
+++ libxml2-2.3.9/xmlIO.c	Sat May 26 21:26:05 2001
@@ -1545,7 +1545,7 @@ xmlParserGetDirectory(const char *filena
 	xmlRegisterDefaultInputCallbacks();
 
     if (filename == NULL) return(NULL);
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
     sep = '\\';
 #endif
 
Only in libxml2-2.3.9: xmlIO.c~
diff -rup libxml2-2.3.9-old/xmllint.c libxml2-2.3.9/xmllint.c
--- libxml2-2.3.9-old/xmllint.c	Sun Apr 22 12:35:10 2001
+++ libxml2-2.3.9/xmllint.c	Sat May 26 21:26:40 2001
@@ -10,7 +10,7 @@
 
 #include <string.h>
 #include <stdarg.h>
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
 #ifdef _MSC_VER
 #include <winsock2.h>
 #pragma comment(lib, "ws2_32.lib")
Only in libxml2-2.3.9: xmllint.c~
diff -rup libxml2-2.3.9-old/xmlversion.h.in libxml2-2.3.9/xmlversion.h.in
--- libxml2-2.3.9-old/xmlversion.h.in	Sun May 20 01:00:09 2001
+++ libxml2-2.3.9/xmlversion.h.in	Sat May 26 21:21:49 2001
@@ -129,7 +129,7 @@ extern void xmlCheckVersion(int version)
  *
  * Whether iconv support is available
  */
-#ifndef WIN32
+#if !defined(WIN32) || defined(__CYGWIN__)
 #if @WITH_ICONV@
 #define LIBXML_ICONV_ENABLED
 #else
