diff options
author | Brad King <brad.king@kitware.com> | 2021-11-16 11:57:45 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-16 11:58:45 -0500 |
commit | acc14edd70707ed040a8ea12afd363018df7d2fc (patch) | |
tree | 0453623f5779c2a8db4e9471eca4825600a6daed /Utilities | |
parent | 40ae5658326f9069aae6c8da061674c485ad7ee3 (diff) | |
download | cmake-acc14edd70707ed040a8ea12afd363018df7d2fc.tar.gz |
libuv: Backport MinGW-w64 compilation fix to CMake 3.22 branch
Backport libuv commit `3e90bc76` (build: fix build failures with MinGW
new headers, 2021-11-03).
Fixes: #22916
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmlibuv/include/uv/win.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/include/uv/win.h b/Utilities/cmlibuv/include/uv/win.h index f86357b4ed..9b5d5dc63a 100644 --- a/Utilities/cmlibuv/include/uv/win.h +++ b/Utilities/cmlibuv/include/uv/win.h @@ -45,7 +45,14 @@ typedef struct pollfd { #endif #include <mswsock.h> +// Disable the typedef in mstcpip.h of MinGW. +#define _TCP_INITIAL_RTO_PARAMETERS _TCP_INITIAL_RTO_PARAMETERS__AVOID +#define TCP_INITIAL_RTO_PARAMETERS TCP_INITIAL_RTO_PARAMETERS__AVOID +#define PTCP_INITIAL_RTO_PARAMETERS PTCP_INITIAL_RTO_PARAMETERS__AVOID #include <ws2tcpip.h> +#undef _TCP_INITIAL_RTO_PARAMETERS +#undef TCP_INITIAL_RTO_PARAMETERS +#undef PTCP_INITIAL_RTO_PARAMETERS #include <windows.h> #include <process.h> |