diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 6a2d3c30..88b6bf1b 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -57,9 +57,8 @@ jobs:
strategy:
matrix:
# TODO: add the following targets, currently broken.
- # "x86_64-fuchsia"
# "x86_64-unknown-redox"
- target: ["aarch64-apple-ios", "aarch64-linux-android", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-sun-solaris", "x86_64-unknown-freebsd", "x86_64-unknown-illumos", "x86_64-unknown-linux-gnu", "x86_64-unknown-netbsd"]
+ target: ["aarch64-apple-ios", "aarch64-linux-android", "x86_64-apple-darwin", "x86_64-fuchsia", "x86_64-pc-windows-msvc", "x86_64-sun-solaris", "x86_64-unknown-freebsd", "x86_64-unknown-illumos", "x86_64-unknown-linux-gnu", "x86_64-unknown-netbsd"]
steps:
- uses: actions/checkout@master
- name: Install Rust
diff --git a/src/sys/unix.rs b/src/sys/unix.rs
index 7a185a5d..cac33d0b 100644
--- a/src/sys/unix.rs
+++ b/src/sys/unix.rs
@@ -7,11 +7,6 @@
// except according to those terms.
use std::cmp::min;
-#[cfg(all(
- feature = "all",
- any(target_os = "android", target_os = "fuchsia", target_os = "linux")
-))]
-use std::ffi::{CStr, CString};
#[cfg(not(target_os = "redox"))]
use std::io::IoSlice;
use std::marker::PhantomData;
@@ -942,11 +937,19 @@ impl crate::Socket {
feature = "all",
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
))]
- pub fn device(&self) -> io::Result