]> granicus.if.org Git - python/commitdiff
Fix _socket module compilation on Cygwin. (GH-4137) (GH-4145)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Feb 2018 20:24:18 +0000 (12:24 -0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 26 Feb 2018 20:24:18 +0000 (22:24 +0200)
(cherry picked from commit 63ae04461fb0cc93ca57cd151103a8dd295581d6)

Modules/socketmodule.c

index b455021c2fd4ec07a6ef77df17319a0445096473..36920f7f8633f5fe464924ff0c3f8b31d477aed4 100644 (file)
@@ -240,7 +240,7 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
 # include <ctype.h>
 #endif
 
-#if defined(__APPLE__) || defined(__NetBSD__)
+#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__NetBSD__)
 # include <sys/ioctl.h>
 #endif