Skip to content

Commit 1873619

Browse files
committed
Add errno_location shim for MacOS
1 parent 0079249 commit 1873619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/foreign_items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
418418
}
419419
}
420420

421-
"__errno_location" => {
421+
"__errno_location" | "__error" => {
422422
let errno_scalar: Scalar<Tag> = this.machine.last_error.unwrap().into();
423423
this.write_scalar(errno_scalar, dest)?;
424424
}

0 commit comments

Comments
 (0)