gh-133568: Only set `HAVE_AF_HYPERV` on supported WinAPI partitions (GH-133569)

This commit is contained in:
Max Bachmann 2025-05-14 13:42:33 +02:00 committed by GitHub
parent e528aef7e2
commit e7ad59bd73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix compile error when using a WinAPI partition that doesn't support the RPC runtime library.

View File

@ -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