summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorErik Bray <erik.m.bray@gmail.com>2017-10-27 10:01:17 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-10-27 10:01:17 (GMT)
commit63ae04461fb0cc93ca57cd151103a8dd295581d6 (patch)
tree698e1e9da30c3e090cca3ce1762343e3d7997aa2 /Modules/socketmodule.c
parent031c4bfadb69feeda82ce886d6b0cadc638d2e1e (diff)
downloadcpython-63ae04461fb0cc93ca57cd151103a8dd295581d6.zip
cpython-63ae04461fb0cc93ca57cd151103a8dd295581d6.tar.gz
cpython-63ae04461fb0cc93ca57cd151103a8dd295581d6.tar.bz2
Fix _socket module compilation on Cygwin. (#4137)
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 0758f9b..6f114ef 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -234,7 +234,7 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
# include <ctype.h>
#endif
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
# include <sys/ioctl.h>
#endif