summaryrefslogtreecommitdiff
path: root/crypto/sleep.c
diff options
context:
space:
mode:
authorAidan Khoury <aidan@revers.engineering>2023-04-11 12:31:57 -0300
committerHugo Landau <hlandau@openssl.org>2023-04-13 10:25:55 +0100
commitc0e090bd61d2e46a1d8f60f39f10152c87e87753 (patch)
treeb742ddb81763bb395daaa06f31e83929cb2f5dd9 /crypto/sleep.c
parent51b941ac290864103d00a3d6a3018372b58b01f4 (diff)
downloadopenssl-new-c0e090bd61d2e46a1d8f60f39f10152c87e87753.tar.gz
Fix UEFI support on win32
Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20714)
Diffstat (limited to 'crypto/sleep.c')
-rw-r--r--crypto/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sleep.c b/crypto/sleep.c
index 3eac44dd74..95d6c79233 100644
--- a/crypto/sleep.c
+++ b/crypto/sleep.c
@@ -39,7 +39,7 @@ void OSSL_sleep(uint64_t millis)
usleep(millis * 1000);
# endif
}
-#elif defined(_WIN32)
+#elif defined(_WIN32) && !defined(OPENSSL_SYS_UEFI)
# include <windows.h>
void OSSL_sleep(uint64_t millis)