From 697eb57b613587139ca426ef425869b3e36ba15a Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Wed, 7 May 2025 13:17:42 +0200 Subject: [PATCH 1/3] only set `HAVE_AF_HYPERV` on supported WinAPI partitions --- Modules/socketmodule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 63624d511c35a0..200b2b8c7d8310 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -259,7 +259,7 @@ typedef int SOCKET_T; #endif // AF_HYPERV is only supported on Windows -#if defined(AF_HYPERV) && defined(MS_WINDOWS) +#if defined(AF_HYPERV) && (defined(MS_WINDOWS_APP) || defined(MS_WINDOWS_SYSTEM)) # define HAVE_AF_HYPERV #endif From a3f04223f6cd0a0b1243338f93c9bff07b71696a Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Wed, 7 May 2025 11:25:31 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst diff --git a/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst b/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst new file mode 100644 index 00000000000000..8ba4c4a233e691 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst @@ -0,0 +1 @@ +only set ``HAVE_AF_HYPERV`` for WinAPI partitions that support the rpc runtime library From e25168d5944eb991d827d35605560c09327a00ef Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Wed, 7 May 2025 13:28:00 +0200 Subject: [PATCH 3/3] Update Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst Co-authored-by: Peter Bierma --- .../next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst b/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst index 8ba4c4a233e691..1e2a5b582cbe7f 100644 --- a/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst +++ b/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst @@ -1 +1 @@ -only set ``HAVE_AF_HYPERV`` for WinAPI partitions that support the rpc runtime library +Fix compile error when using a WinAPI partition that doesn't support the RPC runtime library.