summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-13 16:40:27 -0500
committerBrad King <brad.king@kitware.com>2022-01-13 16:41:35 -0500
commitfc4a11a03612f1fb99354b5f276f95ee750a797d (patch)
tree815b140fd72e206cf7ca913165e257a1995e7c44 /Utilities
parentea70fb3905d98344daff63b2ed505ba294785326 (diff)
downloadcmake-fc4a11a03612f1fb99354b5f276f95ee750a797d.tar.gz
libuv: add cast to pass sockaddr_storage as sockaddr on windows
Tell the compiler the structs are layout-compatible.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibuv/src/win/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/win/udp.c b/Utilities/cmlibuv/src/win/udp.c
index 3a86e0ea8c..7b5efa27e8 100644
--- a/Utilities/cmlibuv/src/win/udp.c
+++ b/Utilities/cmlibuv/src/win/udp.c
@@ -1087,7 +1087,7 @@ int uv__udp_disconnect(uv_udp_t* handle) {
memset(&addr, 0, sizeof(addr));
- err = connect(handle->socket, &addr, sizeof(addr));
+ err = connect(handle->socket, (struct sockaddr*) &addr, sizeof(addr));
if (err)
return uv_translate_sys_error(WSAGetLastError());