diff options
Diffstat (limited to 'src/lib/libcrypto/o_time.c')
-rw-r--r-- | src/lib/libcrypto/o_time.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/lib/libcrypto/o_time.c b/src/lib/libcrypto/o_time.c index 9030fdef7a..eecbdd19f0 100644 --- a/src/lib/libcrypto/o_time.c +++ b/src/lib/libcrypto/o_time.c | |||
@@ -64,18 +64,12 @@ | |||
64 | #include "o_time.h" | 64 | #include "o_time.h" |
65 | 65 | ||
66 | #ifdef OPENSSL_SYS_VMS | 66 | #ifdef OPENSSL_SYS_VMS |
67 | # if __CRTL_VER >= 70000000 && \ | 67 | # include <libdtdef.h> |
68 | (defined _POSIX_C_SOURCE || !defined _ANSI_C_SOURCE) | 68 | # include <lib$routines.h> |
69 | # define VMS_GMTIME_OK | 69 | # include <lnmdef.h> |
70 | # endif | 70 | # include <starlet.h> |
71 | # ifndef VMS_GMTIME_OK | 71 | # include <descrip.h> |
72 | # include <libdtdef.h> | 72 | # include <stdlib.h> |
73 | # include <lib$routines.h> | ||
74 | # include <lnmdef.h> | ||
75 | # include <starlet.h> | ||
76 | # include <descrip.h> | ||
77 | # include <stdlib.h> | ||
78 | # endif /* ndef VMS_GMTIME_OK */ | ||
79 | #endif | 73 | #endif |
80 | 74 | ||
81 | struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result) | 75 | struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result) |
@@ -87,7 +81,7 @@ struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result) | |||
87 | so we don't even look at the return value */ | 81 | so we don't even look at the return value */ |
88 | gmtime_r(timer,result); | 82 | gmtime_r(timer,result); |
89 | ts = result; | 83 | ts = result; |
90 | #elif !defined(OPENSSL_SYS_VMS) || defined(VMS_GMTIME_OK) | 84 | #elif !defined(OPENSSL_SYS_VMS) |
91 | ts = gmtime(timer); | 85 | ts = gmtime(timer); |
92 | if (ts == NULL) | 86 | if (ts == NULL) |
93 | return NULL; | 87 | return NULL; |
@@ -95,7 +89,7 @@ struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result) | |||
95 | memcpy(result, ts, sizeof(struct tm)); | 89 | memcpy(result, ts, sizeof(struct tm)); |
96 | ts = result; | 90 | ts = result; |
97 | #endif | 91 | #endif |
98 | #if defined( OPENSSL_SYS_VMS) && !defined( VMS_GMTIME_OK) | 92 | #ifdef OPENSSL_SYS_VMS |
99 | if (ts == NULL) | 93 | if (ts == NULL) |
100 | { | 94 | { |
101 | static $DESCRIPTOR(tabnam,"LNM$DCL_LOGICAL"); | 95 | static $DESCRIPTOR(tabnam,"LNM$DCL_LOGICAL"); |