X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fmtx_timedlock.c;h=d22c8cf448163f148b016bfd72f81047124a6673;hb=e2e9517607f67c1e23c059769b19bf4270d22123;hp=bcc152c564348898c1ed9218aebb3dc3776a7c23;hpb=8b0472932c1cb8cb2cc46322b21c0c4e21848522;p=musl diff --git a/src/thread/mtx_timedlock.c b/src/thread/mtx_timedlock.c index bcc152c5..d22c8cf4 100644 --- a/src/thread/mtx_timedlock.c +++ b/src/thread/mtx_timedlock.c @@ -1,11 +1,10 @@ #include +#include #include -int __pthread_mutex_timedlock(mtx_t *restrict, const struct timespec *restrict); - int mtx_timedlock(mtx_t *restrict m, const struct timespec *restrict ts) { - int ret = __pthread_mutex_timedlock(m, ts); + int ret = __pthread_mutex_timedlock((pthread_mutex_t *)m, ts); switch (ret) { default: return thrd_error; case 0: return thrd_success;