Files
MINGW-packages/mingw-w64-python3/1860-fix-isselectable.patch

13 lines
512 B
Diff

diff -Naur Python-3.7.0-orig/Include/fileobject.h Python-3.7.0/Include/fileobject.h
--- Python-3.7.0-orig/Include/fileobject.h 2018-06-27 06:07:35.000000000 +0300
+++ Python-3.7.0/Include/fileobject.h 2018-07-12 10:23:01.321329200 +0300
@@ -42,7 +42,7 @@
#endif /* Py_LIMITED_API */
/* A routine to check if a file descriptor can be select()-ed. */
-#ifdef _MSC_VER
+#ifdef MS_WINDOWS
/* On Windows, any socket fd can be select()-ed, no matter how high */
#define _PyIsSelectable_fd(FD) (1)
#else