Skip to content

Commit

Permalink
src/platform/unix.rs:cfg detect macos
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed Jan 13, 2025
1 parent d9fb484 commit d528a30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cryptovec/src/platform/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ pub fn memset(ptr: *mut u8, value: i32, size: usize) {

#[allow(clippy::panic)]
unsafe fn panic_libc_error(msg: &str) {
#[cfg(not(target_os = "macos"))]
let errno = *libc::__errno_location();
#[cfg(target_os = "macos")]
let errno = *libc::__error();
const ERRMAXLEN: usize = 255;
const INVALID_ERR: &str = "Unknown";
let mut errdesc = [0u8; ERRMAXLEN];
Expand Down

0 comments on commit d528a30

Please sign in to comment.