Skip to content

Commit f660567

Browse files
authored
bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)
1 parent 7f21c9a commit f660567

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Include winsock2.h in pytime.c for timeval.

Python/pytime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Python.h"
22
#ifdef MS_WINDOWS
3-
#include <windows.h>
3+
#include <winsock2.h> /* struct timeval */
44
#endif
55

66
#if defined(__APPLE__)

0 commit comments

Comments
 (0)