From: Jason Tishler Date: Mon, 9 Aug 2004 13:25:59 +0000 (+0000) Subject: Bug #1001857: socketmodule does not build under cygwin X-Git-Tag: v2.4a3~306 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c246cb76e64830471cf56c4f5bedb02793c8e2db;p=python Bug #1001857: socketmodule does not build under cygwin Restore clean building under Cygwin. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index f06e253e76..8e1bc190e5 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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);