From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 26 Feb 2018 20:24:18 +0000 (-0800) Subject: Fix _socket module compilation on Cygwin. (GH-4137) (GH-4145) X-Git-Tag: v3.6.5rc1~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e650fd362ee7753ca906e1d92121a165ce45ecb6;p=thirdparty%2FPython%2Fcpython.git Fix _socket module compilation on Cygwin. (GH-4137) (GH-4145) (cherry picked from commit 63ae04461fb0cc93ca57cd151103a8dd295581d6) --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index b455021c2fd4..36920f7f8633 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -240,7 +240,7 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82& # include #endif -#if defined(__APPLE__) || defined(__NetBSD__) +#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__NetBSD__) # include #endif