]> granicus.if.org Git - python/commitdiff
pytime: include winsock2, so we can have a complete timeval type (#3377)
authorBenjamin Peterson <benjamin@python.org>
Wed, 6 Sep 2017 03:45:48 +0000 (20:45 -0700)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2017 03:45:48 +0000 (20:45 -0700)
Python/pytime.c

index 8979adc2191267f59e334051c5c5e6752f0e9be0..b7d6e84101db0344751b77f0bb35e931a2def757 100644 (file)
@@ -1,6 +1,7 @@
 #include "Python.h"
 #ifdef MS_WINDOWS
 #include <windows.h>
+#include <winsock2.h> /* struct timeval */
 #endif
 
 #if defined(__APPLE__)