Skip to content

Commit 07a517a

Browse files
committed
macos: use getentropy from libc
1 parent 38715f7 commit 07a517a

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)