Skip to content

Commit cf8c6f8

Browse files
committed
Fix build errors and remove unnecessary comment
1 parent cb41580 commit cf8c6f8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ pub use crate::error::Error;
160160
#[allow(dead_code)]
161161
mod util;
162162

163-
// Unlike the other Unix, Fuchsia and iOS don't use the libc to make any calls.
164163
#[cfg(unix)]
165164
#[allow(dead_code)]
166165
mod util_libc;

src/util_libc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ use core::ptr::NonNull;
1414
cfg_if! {
1515
if #[cfg(any(target_os = "netbsd", target_os = "openbsd", target_os = "android"))] {
1616
use libc::__errno as errno_location;
17-
} else if #[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "redox"))] {
17+
} else if #[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "redox", target_os = "fuchsia"))] {
1818
use libc::__errno_location as errno_location;
1919
} else if #[cfg(any(target_os = "solaris", target_os = "illumos"))] {
2020
use libc::___errno as errno_location;
21-
} else if #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly"))] {
21+
} else if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "dragonfly"))] {
2222
use libc::__error as errno_location;
2323
} else if #[cfg(target_os = "haiku")] {
2424
use libc::_errnop as errno_location;

0 commit comments

Comments
 (0)