summaryrefslogtreecommitdiffstats
path: root/Configurations
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2024-04-10 10:18:46 +0200
committerRichard Levitte <levitte@openssl.org>2024-04-11 13:06:49 +0200
commit491bbb444c4b654de14adc7031eb44e88a101edb (patch)
tree2d1ec305d39ed8dafd5a603d9462bbd9dbb96425 /Configurations
parent2fd6c12e85ec7558cbdee08033f822c42ee0f5d4 (diff)
VMS: Move defining _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED to config target
For all other platforms that need these macros defined, that's how it's done, so we have VMS follow suit. That avoids a crash between in source definitions and command line definitions on some other platforms. Fixes #24075 Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24083) (cherry picked from commit 7f04bb065d9d948d049ef1ef1bd4062cb7831392)
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/10-main.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index c9db9aac28..ac30adc2c9 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -2054,7 +2054,7 @@ my %targets = (
? "/WARNINGS=DISABLE=(".join(",",@warnings).")" : (); }),
cflag_incfirst => '/FIRST_INCLUDE=',
lib_defines =>
- add("OPENSSL_USE_NODELETE",
+ add("OPENSSL_USE_NODELETE", "_XOPEN_SOURCE", "_XOPEN_SOURCE_EXTENDED",
sub {
return vms_info()->{def_zlib}
? "LIBZ=\"\"\"".vms_info()->{def_zlib}."\"\"\"" : ();