summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2024-03-30 12:52:50 +0100
committerTomas Mraz <tomas@openssl.org>2024-04-04 18:16:05 +0200
commita19553cd872047289d6fc730a864bf9d984283ce (patch)
tree26d4da2acaeed0bcdf27042da853b47f7ffbbe72 /crypto
parent089271601a1d085f33ef7b7d8c3b6879045be370 (diff)
Diverse small VMS build fixups
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24008) (cherry picked from commit 1a4b029af51ba6128a37959796381ca5b8b7ac00)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/asn1/a_time.c2
-rw-r--r--crypto/conf/conf_lib.c2
-rw-r--r--crypto/conf/conf_sap.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index 25d306a3a6..b4a0f9918a 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -14,6 +14,8 @@
* generalTime GeneralizedTime }
*/
+#define _XOPEN_SOURCE /* To get a definition of timezone */
+
#include <stdio.h>
#include <time.h>
#include "crypto/asn1.h"
diff --git a/crypto/conf/conf_lib.c b/crypto/conf/conf_lib.c
index 99e9f8c987..13e2723f80 100644
--- a/crypto/conf/conf_lib.c
+++ b/crypto/conf/conf_lib.c
@@ -7,6 +7,8 @@
* https://www.openssl.org/source/license.html
*/
+#define _XOPEN_SOURCE_EXTENDED /* To get a definition of strdup() */
+
#include "internal/e_os.h"
#include <stdio.h>
#include <string.h>
diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c
index 3019bcf31a..9c78f46581 100644
--- a/crypto/conf/conf_sap.c
+++ b/crypto/conf/conf_sap.c
@@ -7,6 +7,8 @@
* https://www.openssl.org/source/license.html
*/
+#define _XOPEN_SOURCE_EXTENDED /* To get a definition of strdup() */
+
#include <stdio.h>
#include <openssl/crypto.h>
#include "internal/cryptlib.h"