We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6333f84 commit 09176abCopy full SHA for 09176ab
Python/pytime.c
@@ -1,7 +1,10 @@
1
#include "Python.h"
2
#include "pycore_time.h" // _PyTime_t
3
4
-#include <time.h> // gettimeofday()
+#include <time.h> // gmtime_r() on Windows
5
+#ifdef HAVE_SYS_TIME_H
6
+# include <sys/time.h> // gettimeofday()
7
+#endif
8
#ifdef MS_WINDOWS
9
# include <winsock2.h> // struct timeval
10
#endif
0 commit comments