Workaround for Windoze weirdness.
[openssl.git] / crypto / rand / randfile.c
index 658a8d6b65f06050151105d9003be9cbf0a6d723..392efddb21752081ec48025e05b08e3fdac84ed6 100644 (file)
@@ -157,8 +157,10 @@ int RAND_write_file(const char *file)
                int fd = open(file, O_CREAT | O_EXCL, 0600);
                if (fd != -1)
                        out = fdopen(fd, "wb");
-#else          
-               out=fopen(file,"wb");
+               else /* the open(...) reportedly fails on Win98 w/ VisualC */
+                       out = fopen(file,"wb");
+#else
+               out = fopen(file,"wb");
 #endif
                }
        if (out == NULL) goto err;