Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7ad59b

Browse files
authored
gh-133568: Only set HAVE_AF_HYPERV on supported WinAPI partitions (GH-133569)
1 parent e528aef commit e7ad59b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix compile error when using a WinAPI partition that doesn't support the RPC runtime library.

Modules/socketmodule.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ typedef int SOCKET_T;
259259
#endif
260260

261261
// AF_HYPERV is only supported on Windows
262-
#if defined(AF_HYPERV) && defined(MS_WINDOWS)
262+
#if defined(AF_HYPERV) && (defined(MS_WINDOWS_APP) || defined(MS_WINDOWS_SYSTEM))
263263
# define HAVE_AF_HYPERV
264264
#endif
265265

0 commit comments

Comments
 (0)