From c371460cb4d8b8b2c7cd8a51de74e4b85aa499eb Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 11 Jun 2024 12:09:23 +0200 Subject: CrtLibSupport: add timezone Will be needed by openssl-3.2.x Signed-off-by: Gerd Hoffmann --- CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c | 2 ++ CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c | 2 ++ CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c | 3 ++- CryptoPkg/Library/Include/CrtLibSupport.h | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) (limited to 'CryptoPkg') diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c b/CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c index 224e3c3642..3f3ec3e81f 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c @@ -69,3 +69,5 @@ gettimeofday ( tv->tv_usec = 0; return 0; } + +long timezone; diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c b/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c index 21b79acccd..9b3a2911d0 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c @@ -20,6 +20,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define SECSPERHOUR (60 * 60) #define SECSPERDAY (24 * SECSPERHOUR) +long timezone; + // // The arrays give the cumulative number of days up to the first of the // month number used as the index (1 -> 12) for regular and leap years. diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c b/CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c index dab9e01a24..3aa76e0a6b 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c @@ -123,4 +123,5 @@ gettimeofday ( return 0; } -int errno = 0; +int errno = 0; +long timezone; diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h index e3e8781d16..62090c57cb 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -160,6 +160,7 @@ struct sockaddr { // extern int errno; extern FILE *stderr; +extern long timezone; // // Function prototypes of CRT Library routines -- cgit v1.2.3