diff --git a/src/c11/impl/threads_posix.c b/src/c11/impl/threads_posix.c index 614bc17cd21..2540e3e0c49 100644 --- a/src/c11/impl/threads_posix.c +++ b/src/c11/impl/threads_posix.c @@ -203,7 +203,7 @@ mtx_lock(mtx_t *mtx) } static int -threads_timespec_compare(struct timespec *a, struct timespec *b) +threads_timespec_compare(const struct timespec *a, const struct timespec *b) { if (a->tv_sec < b->tv_sec) { return -1;