Skip to content

Commit

Permalink
Auto merge of rust-lang#3551 - RalfJung:getentropy, r=RalfJung
Browse files Browse the repository at this point in the history
macos: use getentropy from libc

This has been added in the mean time.
  • Loading branch information
bors committed May 4, 2024
2 parents 82456b4 + 07a517a commit 705d48c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/tools/miri/tests/pass-dep/shims/libc-getentropy.rs
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down

0 comments on commit 705d48c

Please sign in to comment.