From bf8479d22f2f10da72e2c35c6ee51aab5db2bcf0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Sat, 11 Mar 2000 01:29:26 +0000 Subject: [PATCH] Workaround for Windoze weirdness. --- crypto/rand/randfile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index 658a8d6b65..392efddb21 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -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; -- 2.34.1