[Python-checkins] Fix _socket module compilation on Cygwin. (#4137)

Serhiy Storchaka webhook-mailer at python.org
Fri Oct 27 06:01:19 EDT 2017


https://github.com/python/cpython/commit/63ae04461fb0cc93ca57cd151103a8dd295581d6
commit: 63ae04461fb0cc93ca57cd151103a8dd295581d6
branch: master
author: Erik Bray <erik.m.bray at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2017-10-27T13:01:17+03:00
summary:

Fix _socket module compilation on Cygwin. (#4137)

files:
M Modules/socketmodule.c

diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 0758f9bd409..6f114efe31e 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -234,7 +234,7 @@ if_indextoname(index) -- return the corresponding interface name\n\
 # include <ctype.h>
 #endif
 
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
 # include <sys/ioctl.h>
 #endif
 



More information about the Python-checkins mailing list