Skip to content

Commit

Permalink
Fix build errors and remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
josephlr committed Sep 19, 2019
1 parent cb41580 commit cf8c6f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ pub use crate::error::Error;
#[allow(dead_code)]
mod util;

// Unlike the other Unix, Fuchsia and iOS don't use the libc to make any calls.
#[cfg(unix)]
#[allow(dead_code)]
mod util_libc;
Expand Down
4 changes: 2 additions & 2 deletions src/util_libc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ use core::ptr::NonNull;
cfg_if! {
if #[cfg(any(target_os = "netbsd", target_os = "openbsd", target_os = "android"))] {
use libc::__errno as errno_location;
} else if #[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "redox"))] {
} else if #[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "redox", target_os = "fuchsia"))] {
use libc::__errno_location as errno_location;
} else if #[cfg(any(target_os = "solaris", target_os = "illumos"))] {
use libc::___errno as errno_location;
} else if #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly"))] {
} else if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "dragonfly"))] {
use libc::__error as errno_location;
} else if #[cfg(target_os = "haiku")] {
use libc::_errnop as errno_location;
Expand Down

0 comments on commit cf8c6f8

Please sign in to comment.