about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-04 09:20:04 +0000
committerbors <bors@rust-lang.org>2024-05-04 09:20:04 +0000
commit705d48cff9b18daaf506297b05ae8c2e4577411b (patch)
tree6538bfd6b50c3ffe3493fc05c5610e1d28ceaeb5
parent82456b4ce3e1e3764d8c48114a5090840d3404f3 (diff)
parent07a517a6bac8e022ee1070d6b751ee18a6b32929 (diff)
downloadrust-705d48cff9b18daaf506297b05ae8c2e4577411b.tar.gz
rust-705d48cff9b18daaf506297b05ae8c2e4577411b.zip
Auto merge of #3551 - RalfJung:getentropy, r=RalfJung
macos: use getentropy from libc

This has been added in the mean time.
-rw-r--r--src/tools/miri/tests/pass-dep/shims/libc-getentropy.rs7
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() {