diff --git a/lib/isc/pthreads/condition.c b/lib/isc/pthreads/condition.c index 9d2142d469..179d2dfff9 100644 --- a/lib/isc/pthreads/condition.c +++ b/lib/isc/pthreads/condition.c @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -29,6 +30,8 @@ isc_condition_waituntil(isc_condition_t *c, isc_mutex_t *m, isc_time_t *t) int presult; struct timespec ts; + REQUIRE(c != NULL && m != NULL && t != NULL); + ts.tv_sec = t->seconds; ts.tv_nsec = t->nanoseconds; do {