From 05361483e732b64e2e0a15da4e6ba97c3bbeeca0 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 22 Feb 2017 18:12:04 +0100 Subject: [PATCH] Have the directory reader use the Unix API on VMS opendir(), readdir() and closedir() have been available on VMS since version 7.0. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2707) (cherry picked from commit d8eaaf15356e1559f0f669b430b0d22b3514f8f0) --- crypto/o_dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/o_dir.c b/crypto/o_dir.c index 89c8c5c565..50b4533b0f 100644 --- a/crypto/o_dir.c +++ b/crypto/o_dir.c @@ -23,7 +23,8 @@ #include "internal/o_dir.h" #define LPDIR_H -#if defined OPENSSL_SYS_UNIX || defined DJGPP +#if defined OPENSSL_SYS_UNIX || defined DJGPP \ + (defined __VMS_VER && __VMS_VER >= 70000000) # include "LPdir_unix.c" #elif defined OPENSSL_SYS_VMS # include "LPdir_vms.c" -- 2.25.1