summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-05-18 16:42:14 (GMT)
committerGitHub <noreply@github.com>2020-05-18 16:42:14 (GMT)
commitab9d9535aad5e627cb9ae471f186e27a65e48c6e (patch)
tree8a8fc6e4047c5bd5ac99c9e08b99670db9c734a3 /Python
parentddd5bbdeec8cf18ef074b3506c96d22ac3dc1f93 (diff)
downloadcpython-ab9d9535aad5e627cb9ae471f186e27a65e48c6e.zip
cpython-ab9d9535aad5e627cb9ae471f186e27a65e48c6e.tar.gz
cpython-ab9d9535aad5e627cb9ae471f186e27a65e48c6e.tar.bz2
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 <gongminmin@msn.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/pytime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index 9ff3006..109d526 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__)