summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-06-11 12:09:23 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-25 16:08:35 +0000
commitc371460cb4d8b8b2c7cd8a51de74e4b85aa499eb (patch)
tree0d9f8254f81a4ca55bdddb7b7bedc3d58bf06c49
parent0ec54d8d0c8fb3069ca290c4e7b265f5ddff8583 (diff)
downloadedk2-c371460cb4d8b8b2c7cd8a51de74e4b85aa499eb.tar.gz
edk2-c371460cb4d8b8b2c7cd8a51de74e4b85aa499eb.tar.bz2
edk2-c371460cb4d8b8b2c7cd8a51de74e4b85aa499eb.zip
CrtLibSupport: add timezone
Will be needed by openssl-3.2.x Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c2
-rw-r--r--CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c2
-rw-r--r--CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c3
-rw-r--r--CryptoPkg/Library/Include/CrtLibSupport.h1
4 files changed, 7 insertions, 1 deletions
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