There's a fallback `ossl_sleep()` that uses `OSSL_TIME`. However,
nothing was done to ensure that `OSSL_TIME` is defined.
Adding an inclusion of "internal/time.h" should be enough.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/19214)
}
#else
/* Fallback to a busy wait */
+# include "internal/time.h"
static ossl_inline void ossl_sleep(unsigned long millis)
{
const OSSL_TIME finish = ossl_time_add(ossl_time_now(), ossl_ms2time(millis));