diff options
author | Brad King <brad.king@kitware.com> | 2022-01-13 16:40:27 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-13 16:41:35 -0500 |
commit | fc4a11a03612f1fb99354b5f276f95ee750a797d (patch) | |
tree | 815b140fd72e206cf7ca913165e257a1995e7c44 /Utilities | |
parent | ea70fb3905d98344daff63b2ed505ba294785326 (diff) | |
download | cmake-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.c | 2 |
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()); |