GNOME Bugzilla – Bug 91654
gtkfilesel.c shouldn't include <winsock.h> on Cygwin
Last modified: 2004-12-22 21:47:04 UTC
Cygwin has its own gethostname(). Thus including <winsock.h> conflicts with it. --- gtk+-2.0.6/gtk/gtkfilesel.c~ 2002-06-16 13:02:28.000000000 +0900 +++ gtk+-2.0.6/gtk/gtkfilesel.c 2002-08-19 12:58:08.000000000 +0900 @@ -51,7 +51,7 @@ #include <windows.h> #undef STRICT #endif /* G_OS_WIN32 || G_WITH_CYGWIN */ -#ifdef HAVE_WINSOCK_H +#if defined(HAVE_WINSOCK_H) && !defined(G_WITH_CYGWIN) #include <winsock.h> /* For gethostname */ #endif
Patch applied to HEAD and gtk-2-0.