Skip to content

Commit 7ac91c6

Browse files
committed
Simplify configuration of ai_addr
Merge two separate config blocks for conditionally including ai_addr in the addrinfo struct for unix/notbsd.
1 parent 6d24c4b commit 7ac91c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,13 @@ s! {
5454
pub ai_addrlen: socklen_t,
5555

5656
#[cfg(any(target_os = "linux",
57+
target_os = "android",
5758
target_os = "emscripten",
5859
target_os = "fuchsia"))]
5960
pub ai_addr: *mut ::sockaddr,
6061

6162
pub ai_canonname: *mut c_char,
6263

63-
#[cfg(target_os = "android")]
64-
pub ai_addr: *mut ::sockaddr,
65-
6664
pub ai_next: *mut addrinfo,
6765
}
6866

0 commit comments

Comments
 (0)