ref: d1e7671e6bd6a12d5444716bfbcd3e88ba7e3b5f
parent: 38727e953df2c11f5600ea6f3142ec4366fce3cf
author: Ori Bernstein <[email protected]>
date: Sat Jul 28 12:57:29 EDT 2018
Fix openbsd build.
--- a/lib/thread/condvar+openbsd:6.2.myr
+++ b/lib/thread/condvar+openbsd:6.2.myr
@@ -22,7 +22,7 @@
}
const condwait = {cond
- var seq
+ var seq : uint32
var mtx
mtx = cond._mtx
@@ -33,7 +33,7 @@
FIXME?: `futex` can be interrupted but `condwait` should always be done
in a loop anyway.
*/
- sys.futex(&cond._seq, sys.Futexwait, seq, Zptr, Zptr)
+ sys.futex(&cond._seq, sys.Futexwait, (seq : int), Zptr, Zptr)
/*
We need to atomically set the mutex to contended. This allows us to