Skip to content

Commit 6b0c0ca

Browse files
committed
Switch to upstream parking_lot git, fix compilation on wasi
1 parent 9ef0d8b commit 6b0c0ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ opt-level = 3
6969
[patch.crates-io]
7070
# REDOX START, Uncommment when you want to compile/check with redoxer
7171
# REDOX END
72-
lock_api = { git = "https://github.com/coolreader18/parking_lot", branch = "remutex-is_owned" }
72+
lock_api = { git = "https://github.com/Amanieu/parking_lot" }

vm/src/stdlib/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ mod _os {
309309
O_APPEND, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRUNC, O_WRONLY, SEEK_CUR, SEEK_END,
310310
SEEK_SET,
311311
};
312-
#[cfg(not(target_os = "windows"))]
312+
#[cfg(not(any(windows, target_os = "wasi")))]
313313
#[pyattr]
314314
use libc::{PRIO_PGRP, PRIO_PROCESS, PRIO_USER};
315315
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "linux"))]

0 commit comments

Comments
 (0)