Skip to content

Commit

Permalink
Fix UEFI support on win32
Browse files Browse the repository at this point in the history
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #20714)
  • Loading branch information
ajkhoury authored and hlandau committed Apr 13, 2023
1 parent 51b941a commit c0e090b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crypto/cryptlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "crypto/cryptlib.h"
#include <openssl/safestack.h>

#if defined(_WIN32)
#if defined(_WIN32) && !defined(OPENSSL_SYS_UEFI)
# include <tchar.h>
# include <signal.h>
# ifdef __WATCOMC__
Expand Down Expand Up @@ -256,7 +256,7 @@ void OPENSSL_die(const char *message, const char *file, int line)
{
OPENSSL_showfatal("%s:%d: OpenSSL internal error: %s\n",
file, line, message);
#if !defined(_WIN32)
#if !defined(_WIN32) || defined(OPENSSL_SYS_UEFI)
abort();
#else
/*
Expand Down
2 changes: 1 addition & 1 deletion crypto/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion crypto/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ OSSL_TIME ossl_time_now(void)
{
OSSL_TIME r;

#if defined(_WIN32)
#if defined(_WIN32) && !defined(OPENSSL_SYS_UEFI)
SYSTEMTIME st;
union {
unsigned __int64 ul;
Expand Down

0 comments on commit c0e090b

Please sign in to comment.