summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/umtx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/umtx.h b/sys/sys/umtx.h
index 4664c4e..c9cfcb7 100644
--- a/sys/sys/umtx.h
+++ b/sys/sys/umtx.h
@@ -115,7 +115,7 @@ umtx_unlock(struct umtx *umtx, long id)
static __inline int
umtx_wait(struct umtx *umtx, long id, const struct timespec *timeout)
{
- return (- _umtx_op(umtx, UMTX_OP_WAIT, id, 0, timeout));
+ return (- _umtx_op(umtx, UMTX_OP_WAIT, id, 0, (void *)timeout));
}
/* Wake threads waiting on a user address. */
OpenPOWER on IntegriCloud