summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-13 21:40:27 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-13 21:41:35 (GMT)
commitfc4a11a03612f1fb99354b5f276f95ee750a797d (patch)
tree815b140fd72e206cf7ca913165e257a1995e7c44 /Utilities
parentea70fb3905d98344daff63b2ed505ba294785326 (diff)
downloadCMake-fc4a11a03612f1fb99354b5f276f95ee750a797d.zip
CMake-fc4a11a03612f1fb99354b5f276f95ee750a797d.tar.gz
CMake-fc4a11a03612f1fb99354b5f276f95ee750a797d.tar.bz2
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 3a86e0e..7b5efa2 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());