From eb51673e522855400a11de4569a3612c98c7b685 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 14 Sep 2022 12:32:26 +0200 Subject: [PATCH] Fix the OSSL_TIME fallback in include/internal/e_os.h 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 Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/19214) --- include/internal/e_os.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/internal/e_os.h b/include/internal/e_os.h index 0e520364344..1be20f61f91 100644 --- a/include/internal/e_os.h +++ b/include/internal/e_os.h @@ -320,6 +320,7 @@ static ossl_inline void ossl_sleep(unsigned long millis) } #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)); -- 2.47.3