]> granicus.if.org Git - python/commitdiff
Bug #1001857: socketmodule does not build under cygwin
authorJason Tishler <jason@tishler.net>
Mon, 9 Aug 2004 13:25:59 +0000 (13:25 +0000)
committerJason Tishler <jason@tishler.net>
Mon, 9 Aug 2004 13:25:59 +0000 (13:25 +0000)
Restore clean building under Cygwin.

Modules/socketmodule.c

index f06e253e7668a3abeb8439da0660cab4bee73d8c..8e1bc190e50e8bd4081e77aa6ccc8115200c0c60 100644 (file)
@@ -286,6 +286,10 @@ int h_errno; /* not used */
 #include "addrinfo.h"
 #endif
 
+#if defined(__CYGWIN__)
+#include "addrinfo.h"
+#endif
+
 #ifndef HAVE_INET_PTON
 int inet_pton(int af, const char *src, void *dst);
 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);