Workaround for Windoze weirdness.
This commit is contained in:
parent
4a56f7493c
commit
bf8479d22f
@ -157,8 +157,10 @@ int RAND_write_file(const char *file)
|
|||||||
int fd = open(file, O_CREAT | O_EXCL, 0600);
|
int fd = open(file, O_CREAT | O_EXCL, 0600);
|
||||||
if (fd != -1)
|
if (fd != -1)
|
||||||
out = fdopen(fd, "wb");
|
out = fdopen(fd, "wb");
|
||||||
|
else /* the open(...) reportedly fails on Win98 w/ VisualC */
|
||||||
|
out = fopen(file,"wb");
|
||||||
#else
|
#else
|
||||||
out=fopen(file,"wb");
|
out = fopen(file,"wb");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (out == NULL) goto err;
|
if (out == NULL) goto err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user