diff options
author | Richard Levitte <levitte@openssl.org> | 2021-06-23 08:21:04 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-06-24 15:55:14 +1000 |
commit | 0652197407e1cb0d550f9528d9253c79f980608d (patch) | |
tree | b3d926e40b330ac1a82c350f0219c2b01205806b /test/simpledynamic.h | |
parent | 505fcdb5de382623aa8a1230579334b58aa72b45 (diff) | |
download | openssl-new-0652197407e1cb0d550f9528d9253c79f980608d.tar.gz |
TEST: Modify simpledynamic.[ch] to allow use on VMS as well
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15872)
Diffstat (limited to 'test/simpledynamic.h')
-rw-r--r-- | test/simpledynamic.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/simpledynamic.h b/test/simpledynamic.h index bf5b21552f..d6e1dcbfd1 100644 --- a/test/simpledynamic.h +++ b/test/simpledynamic.h @@ -12,13 +12,18 @@ # include "crypto/dso_conf.h" -# if defined(DSO_DLFCN) +# if defined(DSO_DLFCN) || defined(DSO_VMS) # include <dlfcn.h> # define SD_INIT NULL -# define SD_SHLIB (RTLD_GLOBAL|RTLD_LAZY) -# define SD_MODULE (RTLD_LOCAL|RTLD_NOW) +# ifdef DSO_VMS +# define SD_SHLIB 0 +# define SD_MODULE 0 +# else +# define SD_SHLIB (RTLD_GLOBAL|RTLD_LAZY) +# define SD_MODULE (RTLD_LOCAL|RTLD_NOW) +# endif typedef void *SD; typedef void *SD_SYM; @@ -36,7 +41,7 @@ typedef void *SD_SYM; # endif -# if defined(DSO_DLFCN) || defined(DSO_WIN32) +# if defined(DSO_DLFCN) || defined(DSO_WIN32) || defined(DSO_VMS) int sd_load(const char *filename, SD *sd, int type); int sd_sym(SD sd, const char *symname, SD_SYM *sym); int sd_close(SD lib); |