]> git.lizzy.rs Git - rust.git/blobdiff - src/shims/foreign_items.rs
Add getpid shim
[rust.git] / src / shims / foreign_items.rs
index e978391801f1e72bb325c55d7922e7664e6d3a25..12b5b40e69e88b38c86e15d04b8e226238363a59 100644 (file)
@@ -702,7 +702,7 @@ fn emulate_foreign_item_by_name(
 
             // Platform-specific shims
             _ => match this.tcx.sess.target.os.as_ref() {
-                "linux" | "macos" => return shims::posix::foreign_items::EvalContextExt::emulate_foreign_item_by_name(this, link_name, abi, args, dest, ret),
+                "linux" | "macos" => return shims::unix::foreign_items::EvalContextExt::emulate_foreign_item_by_name(this, link_name, abi, args, dest, ret),
                 "windows" => return shims::windows::foreign_items::EvalContextExt::emulate_foreign_item_by_name(this, link_name, abi, args, dest, ret),
                 target => throw_unsup_format!("the target `{}` is not supported", target),
             }