From 14a2c6504bc7ca46bf5554cdcdc0847bf24b2038 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Fri, 1 Dec 2023 10:51:17 +0000 Subject: [PATCH] windows has no sa_family_t, use ADDRESS_FAMILY https://github.com/microsoft/win32metadata/issues/1690 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e0a4dd9..0f96212 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,7 +52,7 @@ mod windows { pub iov_base: *mut libc::c_void, pub iov_len: libc::size_t, } - pub type sa_family_t = windows_sys::Win32::Networking::WinSock::sa_family_t; + pub type sa_family_t = windows_sys::Win32::Networking::WinSock::ADDRESS_FAMILY; pub type sockaddr = windows_sys::Win32::Networking::WinSock::SOCKADDR; pub type sockaddr_in = windows_sys::Win32::Networking::WinSock::SOCKADDR_IN; pub type sockaddr_in6 = windows_sys::Win32::Networking::WinSock::SOCKADDR_IN6;