diff options
-rw-r--r-- | Misc/NEWS.d/next/Windows/2020-05-17-00-08-13.bpo-40650.4euMtU.rst | 1 | ||||
-rw-r--r-- | Python/pytime.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Misc/NEWS.d/next/Windows/2020-05-17-00-08-13.bpo-40650.4euMtU.rst b/Misc/NEWS.d/next/Windows/2020-05-17-00-08-13.bpo-40650.4euMtU.rst new file mode 100644 index 0000000..db13e58 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2020-05-17-00-08-13.bpo-40650.4euMtU.rst @@ -0,0 +1 @@ +Include winsock2.h in pytime.c for timeval.
\ No newline at end of file diff --git a/Python/pytime.c b/Python/pytime.c index 6affccb..b121b43 100644 --- a/Python/pytime.c +++ b/Python/pytime.c @@ -1,6 +1,6 @@ #include "Python.h" #ifdef MS_WINDOWS -#include <windows.h> +#include <winsock2.h> /* struct timeval */ #endif #if defined(__APPLE__) |