summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2018-11-27 11:02:56 +0100
committergnzlbg <gonzalobg88@gmail.com>2018-11-27 11:02:56 +0100
commit9acd5ea4ccab8cb247ec81f943bd7c3f961045bd (patch)
treedb8ddf9204e409be3e0807277f42b7aea1075e52
parentaee584c3c045da388e625365e79d6a9894e1774f (diff)
downloadrust-libc-9acd5ea4ccab8cb247ec81f943bd7c3f961045bd.tar.gz
Remove unreachable fuchsia branches
-rw-r--r--src/unix/mod.rs7
-rw-r--r--src/unix/notbsd/linux/mod.rs2
-rw-r--r--src/unix/notbsd/mod.rs5
3 files changed, 4 insertions, 10 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index ff9e1954bb..1358976a53 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -347,10 +347,6 @@ cfg_if! {
#[link(name = "root")]
#[link(name = "network")]
extern {}
- } else if #[cfg(target_os = "fuchsia")] {
- #[link(name = "c")]
- #[link(name = "fdio")]
- extern {}
} else if #[cfg(target_env = "newlib")] {
#[link(name = "c")]
#[link(name = "m")]
@@ -1126,8 +1122,7 @@ cfg_if! {
pub use self::newlib::*;
} else if #[cfg(any(target_os = "linux",
target_os = "android",
- target_os = "emscripten",
- target_os = "fuchsia"))] {
+ target_os = "emscripten"))] {
mod notbsd;
pub use self::notbsd::*;
} else if #[cfg(any(target_os = "macos",
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index 78dced152d..7880a3cd67 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -2242,7 +2242,7 @@ extern {
}
cfg_if! {
- if #[cfg(any(target_env = "musl", target_os = "fuchsia"))] {
+ if #[cfg(target_env = "musl")] {
mod musl;
pub use self::musl::*;
} else if #[cfg(any(target_arch = "mips",
diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs
index 6e4500684e..f66350a191 100644
--- a/src/unix/notbsd/mod.rs
+++ b/src/unix/notbsd/mod.rs
@@ -53,8 +53,7 @@ s! {
pub ai_addrlen: socklen_t,
#[cfg(any(target_os = "linux",
- target_os = "emscripten",
- target_os = "fuchsia"))]
+ target_os = "emscripten"))]
pub ai_addr: *mut ::sockaddr,
pub ai_canonname: *mut c_char,
@@ -1235,7 +1234,7 @@ cfg_if! {
if #[cfg(target_os = "emscripten")] {
mod emscripten;
pub use self::emscripten::*;
- } else if #[cfg(any(target_os = "linux", target_os = "fuchsia"))] {
+ } else if #[cfg(target_os = "linux")] {
mod linux;
pub use self::linux::*;
} else if #[cfg(target_os = "android")] {