Workaround for Windoze weirdness.

This commit is contained in:
Bodo Möller 2000-03-11 01:29:26 +00:00
parent 4a56f7493c
commit bf8479d22f

View 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;