mirror of
https://github.com/python/cpython.git
synced 2025-07-07 11:25:30 +00:00
gh-133568: Only set HAVE_AF_HYPERV
on supported WinAPI partitions (GH-133569)
This commit is contained in:
parent
e528aef7e2
commit
e7ad59bd73
2 changed files with 2 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
Fix compile error when using a WinAPI partition that doesn't support the RPC runtime library.
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue