Skip to content

Commit 2471197

Browse files
authored
Fix build failure of uds tests on android (#1847)
Android provides SocketAddrExt at a different path than other Linuxes, so from_abstract_name needs to be imported differently. This mirrors the imports at the top of the file.
1 parent 54e4397 commit 2471197

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sys/unix/uds/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ mod tests {
158158
#[test]
159159
#[cfg(any(target_os = "android", target_os = "linux"))]
160160
fn abstract_address() {
161+
#[cfg(target_os = "android")]
162+
use std::os::android::net::SocketAddrExt;
163+
#[cfg(target_os = "linux")]
161164
use std::os::linux::net::SocketAddrExt;
162165

163166
const PATH: &[u8] = &[0, 116, 111, 107, 105, 111];

0 commit comments

Comments
 (0)