Simplify configuration of ai_addr

Merge two separate config blocks for conditionally including ai_addr
in the addrinfo struct for unix/notbsd.
This commit is contained in:
Raph Levien 2016-10-20 15:28:06 -07:00
parent 6d24c4be08
commit 7ac91c6d01

View File

@ -54,15 +54,13 @@ s! {
pub ai_addrlen: socklen_t,
#[cfg(any(target_os = "linux",
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia"))]
pub ai_addr: *mut ::sockaddr,
pub ai_canonname: *mut c_char,
#[cfg(target_os = "android")]
pub ai_addr: *mut ::sockaddr,
pub ai_next: *mut addrinfo,
}