Skip to content

Commit d7af175

Browse files
committed
Add comment for AF_HYPERV def
1 parent a0b06f3 commit d7af175

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modules/socketmodule.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ struct SOCKADDR_BTH_REDEF {
7777
typedef int socklen_t;
7878
# endif /* IPPROTO_IPV6 */
7979

80-
/* Future remove once Py_WINVER has been bumped to >=0x0604 */
80+
/* Remove ifdef once Py_WINVER >= 0x0604
81+
* socket.h only defines AF_HYPERV if _WIN32_WINNT is at that level or higher
82+
* so for now it's just manually defined.
83+
*/
8184
# ifndef AF_HYPERV
8285
# define AF_HYPERV 34
8386
# endif

0 commit comments

Comments
 (0)