about summary refs log tree commit diff
path: root/library/std/src/sys/unix/locks/mod.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2022-04-28 11:03:30 +0200
committerMara Bos <m-ou.se@m-ou.se>2022-04-29 16:30:54 +0200
commit2dfad1e3f81d649124bba15f96fd8e96431cd4fc (patch)
treef259c6662a691c600f86377eee647cbf6013a5ad /library/std/src/sys/unix/locks/mod.rs
parentafe1a256ce6612c8c98b5f8a15f797dced1cf696 (diff)
downloadrust-2dfad1e3f81d649124bba15f96fd8e96431cd4fc.tar.gz
rust-2dfad1e3f81d649124bba15f96fd8e96431cd4fc.zip
Use futex-based locks and thread parker on NetBSD.
Diffstat (limited to 'library/std/src/sys/unix/locks/mod.rs')
-rw-r--r--library/std/src/sys/unix/locks/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/locks/mod.rs b/library/std/src/sys/unix/locks/mod.rs
index f7ec4763a04..61fc0d5841d 100644
--- a/library/std/src/sys/unix/locks/mod.rs
+++ b/library/std/src/sys/unix/locks/mod.rs
@@ -4,6 +4,7 @@ cfg_if::cfg_if! {
         target_os = "android",
         all(target_os = "emscripten", target_feature = "atomics"),
         target_os = "openbsd",
+        target_os = "netbsd",
     ))] {
         mod futex;
         mod futex_rwlock;