]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)
authorMinmin Gong <gongminmin@msn.com>
Mon, 18 May 2020 16:22:53 +0000 (09:22 -0700)
committerGitHub <noreply@github.com>
Mon, 18 May 2020 16:22:53 +0000 (17:22 +0100)
Misc/NEWS.d/next/Windows/2020-05-17-00-08-13.bpo-40650.4euMtU.rst [new file with mode: 0644]
Python/pytime.c

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 (file)
index 0000000..db13e58
--- /dev/null
@@ -0,0 +1 @@
+Include winsock2.h in pytime.c for timeval.
\ No newline at end of file
index 6affccbeffa88a046ff14e874b999411b853efe5..b121b432f428d7f37dfde62cdec6ce9f13e53f3c 100644 (file)
@@ -1,6 +1,6 @@
 #include "Python.h"
 #ifdef MS_WINDOWS
-#include <windows.h>
+#include <winsock2.h>         /* struct timeval */
 #endif
 
 #if defined(__APPLE__)