From 0d0902a1e131f57995e705c362b46d59bbf63234 Mon Sep 17 00:00:00 2001 From: David Cook Date: Sun, 26 Jan 2020 18:07:31 -0600 Subject: [PATCH] Apply shim to lseek too (for macOS) --- src/shims/foreign_items.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shims/foreign_items.rs b/src/shims/foreign_items.rs index 9d025b2b7b2..a6c1a31b4fe 100644 --- a/src/shims/foreign_items.rs +++ b/src/shims/foreign_items.rs @@ -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)?; }