diff options
| author | Ralf Jung <post@ralfj.de> | 2024-05-04 10:52:25 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-05-04 10:52:25 +0200 |
| commit | 07a517a6bac8e022ee1070d6b751ee18a6b32929 (patch) | |
| tree | 3d8bd2404dc60573e0ba0e5ade3f36b42ad26480 | |
| parent | 38715f714faa490759d6e01e6b359b6a54e86ef3 (diff) | |
| download | rust-07a517a6bac8e022ee1070d6b751ee18a6b32929.tar.gz rust-07a517a6bac8e022ee1070d6b751ee18a6b32929.zip | |
macos: use getentropy from libc
| -rw-r--r-- | src/tools/miri/tests/pass-dep/shims/libc-getentropy.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/tools/miri/tests/pass-dep/shims/libc-getentropy.rs b/src/tools/miri/tests/pass-dep/shims/libc-getentropy.rs index 4b863f68516..06109397c2b 100644 --- a/src/tools/miri/tests/pass-dep/shims/libc-getentropy.rs +++ b/src/tools/miri/tests/pass-dep/shims/libc-getentropy.rs @@ -1,12 +1,5 @@ //@ignore-target-windows: no libc -// on macOS this is not in the `libc` crate. -#[cfg(target_os = "macos")] -extern "C" { - fn getentropy(bytes: *mut libc::c_void, count: libc::size_t) -> libc::c_int; -} - -#[cfg(not(target_os = "macos"))] use libc::getentropy; fn main() { |
