Skip to content

Commit 0d0902a

Browse files
committed
Apply shim to lseek too (for macOS)
1 parent 03b5d95 commit 0d0902a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shims/foreign_items.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,9 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
489489
this.write_scalar(Scalar::from_int(result, dest.layout.size), dest)?;
490490
}
491491

492-
"lseek64" => {
492+
| "lseek64"
493+
| "lseek"
494+
=> {
493495
let result = this.lseek64(args[0], args[1], args[2])?;
494496
this.write_scalar(Scalar::from_int(result, dest.layout.size), dest)?;
495497
}

0 commit comments

Comments
 (0)