https://github.com/python/cpython/commit/833860615bedfd2484ac0623d6f01ff0578ba09f commit: 833860615bedfd2484ac0623d6f01ff0578ba09f branch: master author: Benjamin Peterson <benjamin at python.org> committer: GitHub <noreply at github.com> date: 2017年09月05日T20:45:48-07:00 summary: pytime: include winsock2, so we can have a complete timeval type (#3377) files: M Python/pytime.c diff --git a/Python/pytime.c b/Python/pytime.c index 8979adc2191..b7d6e84101d 100644 --- a/Python/pytime.c +++ b/Python/pytime.c @@ -1,6 +1,7 @@ #include "Python.h" #ifdef MS_WINDOWS #include <windows.h> +#include <winsock2.h> /* struct timeval */ #endif #if defined(__APPLE__)