https://github.com/python/cpython/commit/e7ad59bd73078c2f4cdcfddadacb51c43338fe93 commit: e7ad59bd73078c2f4cdcfddadacb51c43338fe93 branch: main author: Max Bachmann <max.bachm...@iracing.com> committer: zooba <steve.do...@microsoft.com> date: 2025-05-14T11:42:33Z summary:
gh-133568: Only set `HAVE_AF_HYPERV` on supported WinAPI partitions (GH-133569) files: A Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst M Modules/socketmodule.h 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..1e2a5b582cbe7f --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-05-07-11-25-29.gh-issue-133568.oYV0d8.rst @@ -0,0 +1 @@ +Fix compile error when using a WinAPI partition that doesn't support the RPC runtime library. 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 _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com