Kamil <sk...@mail.ru> added the comment: I am sorry, this is the right version CHANGE: #ifdef TCP_KEEPCNT PyModule_AddIntMacro(m, TCP_KEEPCNT); #endif
TO: #ifdef TCP_KEEPCNT #ifdef MS_WINDOWS #if defined(_MSC_VER) && _MSC_VER >= 1800 //on Windows avaible only from Windows 10 1703 (Build:15063 ) if (IsWindows10CreatorsOrGreater()) { PyModule_AddIntMacro(m, TCP_KEEPCNT); } #else PyModule_AddIntMacro(m, TCP_KEEPCNT); #endif #endif AND CHANGE: #ifdef TCP_FASTOPEN PyModule_AddIntMacro(m, TCP_FASTOPEN); #endif TO: #ifdef TCP_FASTOPEN #ifdef MS_WINDOWS #if defined(_MSC_VER) && _MSC_VER >= 1800 //on Windows avaible only from Windows 10 1607(Build: 14393) if (IsWindows10AnniversaryOrGreater()) { PyModule_AddIntMacro(m, TCP_FASTOPEN); } #else PyModule_AddIntMacro(m, TCP_FASTOPEN); #endif #endif ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32394> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com