Have the directory reader use the Unix API on VMS
authorRichard Levitte <levitte@openssl.org>
Wed, 22 Feb 2017 17:12:04 +0000 (18:12 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 22 Feb 2017 17:18:52 +0000 (18:18 +0100)
opendir(), readdir() and closedir() have been available on VMS since
version 7.0.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2707)
(cherry picked from commit d8eaaf15356e1559f0f669b430b0d22b3514f8f0)

crypto/o_dir.c

index f9dbed871127936f80535222ba36d3ff1ebbe323..0ca4029686a6fd1e29e0ca1d34d545841649e4b0 100644 (file)
@@ -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"