Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e7ad59b

Browse files
authoredMay 14, 2025··
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
 
Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant