summaryrefslogtreecommitdiffstats
path: root/Python/pytime.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-09-06 03:45:48 (GMT)
committerGitHub <noreply@github.com>2017-09-06 03:45:48 (GMT)
commit833860615bedfd2484ac0623d6f01ff0578ba09f (patch)
treea2106886d3989986d93cdc5c0593fb04864aeec2 /Python/pytime.c
parentb0a9a5a6a4786a6f8f0540e243427775d8ca245e (diff)
downloadcpython-833860615bedfd2484ac0623d6f01ff0578ba09f.zip
cpython-833860615bedfd2484ac0623d6f01ff0578ba09f.tar.gz
cpython-833860615bedfd2484ac0623d6f01ff0578ba09f.tar.bz2
pytime: include winsock2, so we can have a complete timeval type (#3377)
Diffstat (limited to 'Python/pytime.c')
-rw-r--r--Python/pytime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index 8979adc..b7d6e84 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -1,6 +1,7 @@
#include "Python.h"
#ifdef MS_WINDOWS
#include <windows.h>
+#include <winsock2.h> /* struct timeval */
#endif
#if defined(__APPLE__)