Skip to content

Commit 8e49c1f

Browse files
bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h (GH-20137)
(cherry picked from commit f660567) Co-authored-by: Minmin Gong <gongminmin@msn.com>
1 parent 6da26f8 commit 8e49c1f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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)