This _WIN32-specific patch makes it possible to "wrap" OpenSSL in another
[openssl.git] / crypto / rand / randfile.c
index c4e616077923a3fca2f6e5a881972365b8f0ae8b..4723feecaf30ff7a3f60c4a24618d31c3f132aca 100644 (file)
 # 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