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

Serhiy Storchaka webhook-mailer at python.org
Mon Feb 26 15:24:22 EST 2018


https://github.com/python/cpython/commit/e650fd362ee7753ca906e1d92121a165ce45ecb6
commit: e650fd362ee7753ca906e1d92121a165ce45ecb6
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-02-26T22:24:18+02:00
summary:

Fix _socket module compilation on Cygwin. (GH-4137) (GH-4145)

(cherry picked from commit 63ae04461fb0cc93ca57cd151103a8dd295581d6)

files:
M Modules/socketmodule.c

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 @@ if_indextoname(index) -- return the corresponding interface name\n\
 # include <ctype.h>
 #endif
 
-#if defined(__APPLE__) || defined(__NetBSD__)
+#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__NetBSD__)
 # include <sys/ioctl.h>
 #endif
 



More information about the Python-checkins mailing list