Skip to content

Commit 705d48c

Browse files
committed
Auto merge of rust-lang#3551 - RalfJung:getentropy, r=RalfJung
macos: use getentropy from libc This has been added in the mean time.
2 parents 82456b4 + 07a517a commit 705d48c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/tools/miri/tests/pass-dep/shims/libc-getentropy.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
//@ignore-target-windows: no libc
22

3-
// on macOS this is not in the `libc` crate.
4-
#[cfg(target_os = "macos")]
5-
extern "C" {
6-
fn getentropy(bytes: *mut libc::c_void, count: libc::size_t) -> libc::c_int;
7-
}
8-
9-
#[cfg(not(target_os = "macos"))]
103
use libc::getentropy;
114

125
fn main() {

0 commit comments

Comments
 (0)