summaryrefslogtreecommitdiff
path: root/crypto/dso
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-10-07 10:23:17 +0200
committerRichard Levitte <levitte@openssl.org>2022-10-07 10:23:17 +0200
commitc007f466aaebd8ef07111c8560e039d8bcb5fa7b (patch)
tree9f81ed50bb0e8a153060a13973e1975612b3b8dc /crypto/dso
parent45ada6b92bc7e31772d95ab9dcb0e7d2a764cf20 (diff)
downloadopenssl-new-c007f466aaebd8ef07111c8560e039d8bcb5fa7b.tar.gz
Fix crypto/dso/dso_vms.c
In the "Stop raising ERR_R_MALLOC_FAILURE in most places" commit, some fixes of this file weren't done quite right, leading to a symbol being undeclared depending on building circumstances. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/19360)
Diffstat (limited to 'crypto/dso')
-rw-r--r--crypto/dso/dso_vms.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/dso/dso_vms.c b/crypto/dso/dso_vms.c
index 1afa222dbc..236b1924d4 100644
--- a/crypto/dso/dso_vms.c
+++ b/crypto/dso/dso_vms.c
@@ -106,9 +106,12 @@ static int vms_load(DSO *dso)
# pragma pointer_size save
# pragma pointer_size 32
# endif /* __INITIAL_POINTER_SIZE == 64 */
+# endif /* __INITIAL_POINTER_SIZE && defined
+ * _ANSI_C_SOURCE */
DSO_VMS_INTERNAL *p = NULL;
+# if __INITIAL_POINTER_SIZE && defined _ANSI_C_SOURCE
# if __INITIAL_POINTER_SIZE == 64
# pragma pointer_size restore
# endif /* __INITIAL_POINTER_SIZE == 64 */