From 67a2b0b7713e40dea7762b7d7764ae18fe967561 Mon Sep 17 00:00:00 2001 From: Erik Bray Date: Fri, 27 Oct 2017 12:01:17 +0200 Subject: [PATCH] Fix _socket module compilation on Cygwin. (GH-4137) (cherry picked from commit 63ae04461fb0cc93ca57cd151103a8dd295581d6) --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index da84291edcf908..f6cfed459f276c 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -240,7 +240,7 @@ if_indextoname(index) -- return the corresponding interface name\n\ # include #endif -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__CYGWIN__) # include #endif