From 8e67d8b364a3c44f4fd5a2df5914f13979de7c91 Mon Sep 17 00:00:00 2001 From: roflcopter4 <15476346+roflcopter4@users.noreply.github.com> Date: Sat, 5 Mar 2022 10:54:41 -0700 Subject: [PATCH] win,poll: add the MSAFD GUID for AF_UNIX (#3511) Enables the "fast poll" mechanism for the new(ish) Unix sockets in Windows 10. --- include/uv/win.h | 2 +- src/win/poll.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/uv/win.h b/include/uv/win.h index 59a5d86e..62be4b04 100644 --- a/include/uv/win.h +++ b/include/uv/win.h @@ -223,7 +223,7 @@ typedef struct _AFD_POLL_INFO { AFD_POLL_HANDLE_INFO Handles[1]; } AFD_POLL_INFO, *PAFD_POLL_INFO; -#define UV_MSAFD_PROVIDER_COUNT 3 +#define UV_MSAFD_PROVIDER_COUNT 4 /** diff --git a/src/win/poll.c b/src/win/poll.c index 53a4fd97..bd531b06 100644 --- a/src/win/poll.c +++ b/src/win/poll.c @@ -34,7 +34,9 @@ static const GUID uv_msafd_provider_ids[UV_MSAFD_PROVIDER_COUNT] = { {0xf9eab0c0, 0x26d4, 0x11d0, {0xbb, 0xbf, 0x00, 0xaa, 0x00, 0x6c, 0x34, 0xe4}}, {0x9fc48064, 0x7298, 0x43e4, - {0xb7, 0xbd, 0x18, 0x1f, 0x20, 0x89, 0x79, 0x2a}} + {0xb7, 0xbd, 0x18, 0x1f, 0x20, 0x89, 0x79, 0x2a}}, + {0xa00943d9, 0x9c2e, 0x4633, + {0x9b, 0x59, 0x00, 0x57, 0xa3, 0x16, 0x09, 0x94}} }; typedef struct uv_single_fd_set_s {