From 90670b54c493c04c830ac38e9cfd7acf8fac4012 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 f9dbed8711..0ca4029686 100644 --- a/crypto/o_dir.c +++ b/crypto/o_dir.c @@ -73,7 +73,8 @@ #include "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