summaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-12-30 13:30:57 +0000
committerAndy Polyakov <appro@openssl.org>2008-12-30 13:30:57 +0000
commitf17c45611e4c96df01e5664ad7ed52ec621dda41 (patch)
tree8ca72d003b9ed8ab3fc1fd12418c943a47a55ec8 /crypto/rand
parent1ff7b6492bdab064695ba76fe624001ee6e6b625 (diff)
Backport http://cvs.openssl.org/chngview?cn=17710 from HEAD.
PR: 1230
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/randfile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index 61fb3e9809..d108353bbc 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -81,6 +81,13 @@
# include <sys/stat.h>
#endif
+#ifdef _WIN32
+#define stat _stat
+#define chmod _chmod
+#define open _open
+#define fdopen _fdopen
+#endif
+
#undef BUFSIZE
#define BUFSIZE 1024
#define RAND_DATA 1024