From f660567937277cc3a2cd53af77bbb18e905427e8 Mon Sep 17 00:00:00 2001 From: Minmin Gong Date: Mon, 18 May 2020 09:22:53 -0700 Subject: [PATCH] bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137) --- .../next/Windows/2020-05-17-00-08-13.bpo-40650.4euMtU.rst | 1 + Python/pytime.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Windows/2020-05-17-00-08-13.bpo-40650.4euMtU.rst 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 00000000000..db13e58b14a --- /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 6affccbeffa..b121b432f42 100644 --- a/Python/pytime.c +++ b/Python/pytime.c @@ -1,6 +1,6 @@ #include "Python.h" #ifdef MS_WINDOWS -#include +#include /* struct timeval */ #endif #if defined(__APPLE__)