|
| 1 | +--- cargo-crates/getrandom-0.1.11/Cargo.toml.intermediate 2019-09-06 14:30:19.000000000 +0000 |
| 2 | ++++ cargo-crates/getrandom-0.1.11/Cargo.toml |
| 3 | +@@ -33,6 +33,9 @@ version = "1.0" |
| 4 | + optional = true |
| 5 | + package = "rustc-std-workspace-core" |
| 6 | + |
| 7 | ++[dependencies.errno-dragonfly] |
| 8 | ++version = "0.1.1" |
| 9 | ++ |
| 10 | + [dependencies.log] |
| 11 | + version = "0.4" |
| 12 | + optional = true |
| 13 | +--- cargo-crates/getrandom-0.1.11/src/util_libc.rs.orig 2019-08-24 23:12:51 UTC |
| 14 | ++++ cargo-crates/getrandom-0.1.11/src/util_libc.rs |
| 15 | +@@ -10,6 +10,7 @@ use crate::util::LazyUsize; |
| 16 | + use crate::Error; |
| 17 | + use core::num::NonZeroU32; |
| 18 | + use core::ptr::NonNull; |
| 19 | ++extern crate errno_dragonfly; |
| 20 | + |
| 21 | + cfg_if! { |
| 22 | + if #[cfg(any(target_os = "netbsd", target_os = "openbsd", target_os = "android"))] { |
| 23 | +@@ -18,10 +19,13 @@ cfg_if! { |
| 24 | + use libc::__errno_location as errno_location; |
| 25 | + } else if #[cfg(any(target_os = "solaris", target_os = "illumos"))] { |
| 26 | + use libc::___errno as errno_location; |
| 27 | +- } else if #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly"))] { |
| 28 | ++ } else if #[cfg(any(target_os = "macos", target_os = "freebsd"))] { |
| 29 | + use libc::__error as errno_location; |
| 30 | + } else if #[cfg(target_os = "haiku")] { |
| 31 | + use libc::_errnop as errno_location; |
| 32 | ++ } else if #[cfg(target_os = "dragonfly")] { |
| 33 | ++ // soon will be use libc::__errno_location as errno_location; |
| 34 | ++ use errno_dragonfly::errno_location; |
| 35 | + } |
| 36 | + } |
| 37 | + |
0 commit comments