From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 18 May 2020 16:42:14 +0000 (-0700) Subject: bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137) X-Git-Tag: v3.8.4rc1~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab9d9535aad5e627cb9ae471f186e27a65e48c6e;p=thirdparty%2FPython%2Fcpython.git bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137) (cherry picked from commit f660567937277cc3a2cd53af77bbb18e905427e8) Co-authored-by: Minmin Gong --- 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 000000000000..db13e58b14a7 --- /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 9ff300699f04..109d52692ce4 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__)