提交 bf8479d2 编写于 作者: B Bodo Möller

Workaround for Windoze weirdness.

上级 4a56f749
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册