8000 Fix _socket module compilation on Cygwin. (#4137) · ultimatecoder/cpython@63ae044 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63ae044

Browse files
embrayserhiy-storchaka
authored andcommitted
Fix _socket module compilation on Cygwin. (python#4137)
1 parent 031c4bf commit 63ae044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ if_indextoname(index) -- return the corresponding interface name\n\
234234
# include <ctype.h>
235235
#endif
236236

237-
#ifdef __APPLE__
237+
#if defined(__APPLE__) || defined(__CYGWIN__)
238238
# include <sys/ioctl.h>
239239
#endif
240240

0 commit comments

Comments
 (0)
0