Skip to content

Commit d9a5dfa

Browse files
Fix includes on Windows.
1 parent fc42e22 commit d9a5dfa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// is not exported by <windows.h> if the WIN32_LEAN_AND_MEAN macro is defined,
1515
// whereas pycore_condvar.h defines the WIN32_LEAN_AND_MEAN macro.
1616
#ifdef MS_WINDOWS
17+
# include <winsock2.h>
1718
# include <windows.h>
1819
# include <pathcch.h>
1920
# include <lmcons.h> // UNLEN

PC/msvcrtmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <conio.h>
2424
#include <sys/locking.h>
2525
#include <crtdbg.h>
26+
#include <winsock2.h>
2627
#include <windows.h>
2728

2829
#ifdef _MSC_VER

0 commit comments

Comments
 (0)