Apply shim to lseek too (for macOS)

This commit is contained in:
David Cook 2020-01-26 18:07:31 -06:00
parent 03b5d95cff
commit 0d0902a1e1

View File

@ -489,7 +489,9 @@ fn emulate_foreign_item(
this.write_scalar(Scalar::from_int(result, dest.layout.size), dest)?;
}
"lseek64" => {
| "lseek64"
| "lseek"
=> {
let result = this.lseek64(args[0], args[1], args[2])?;
this.write_scalar(Scalar::from_int(result, dest.layout.size), dest)?;
}