summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorMarcin Kolny <marcin.kolny@gmail.com>2023-07-07 11:11:10 +0100
committerPauli <pauli@openssl.org>2023-07-12 10:50:09 +1000
commit66f61ece724a54253da36f70274bc320faf9f4e2 (patch)
tree5ae3a01df884d628211c1864f5246e7d2776de58 /crypto/asn1
parent0a3733babbbb4e297ccfbc3ece29e95cafca5f2d (diff)
Add more fixes for WebAssembly/WASI build
* force use timegm - WASI does not have timezone tables * use basic implementation for `OPENSSL_issetugid()` - WASI doesn't support forking processes CLA: trivial Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21389)
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/a_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index dd3724fc83..3bce55c01a 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -595,7 +595,7 @@ int ASN1_TIME_compare(const ASN1_TIME *a, const ASN1_TIME *b)
# define timezone _timezone
#endif
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__wasi__)
# define USE_TIMEGM
#endif