Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-09-14 13:32:26 +0300
committerRichard Levitte <levitte@openssl.org>2022-09-14 13:32:26 +0300
commiteb51673e522855400a11de4569a3612c98c7b685 (patch)
tree1931fe17d04e8d2075708c40607bbafc9348823a /include/internal
parent45e7ef5fe34b3f519f1454c47dc08aa4563e4247 (diff)
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 <matt@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/19214)
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/e_os.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/internal/e_os.h b/include/internal/e_os.h
index 0e52036434..1be20f61f9 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));