summaryrefslogtreecommitdiffstats
path: root/crypto/des/des.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/des/des.c')
-rw-r--r--crypto/des/des.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/des/des.c b/crypto/des/des.c
index 3aa34f4598..02c4828c5c 100644
--- a/crypto/des/des.c
+++ b/crypto/des/des.c
@@ -59,7 +59,19 @@
#include <stdio.h>
#include <stdlib.h>
#ifndef MSDOS
+#ifndef VMS
#include <unistd.h>
+#else /* VMS */
+#ifdef __DECC
+#include <unistd.h>
+#if __CRTL_VER < 70000000
+#define RAND
+#endif
+#else /* not __DECC */
+#include <math.h>
+#define RAND
+#endif /* __DECC */
+#endif /* VMS */
#else
#include <io.h>
#define RAND