From: Matt Caswell Date: Mon, 11 Apr 2016 12:59:31 +0000 (+0100) Subject: Fix the no-posix-io option X-Git-Tag: OpenSSL_1_1_0-pre5~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3012e650398a83e72f3ce63c3803e06765dae735;p=thirdparty%2Fopenssl.git Fix the no-posix-io option Fix a compile failure with no-posix-io Reviewed-by: Tim Hudson --- diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index a5b2b7f1624..3ee6bf5a162 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -252,7 +252,7 @@ int RAND_write_file(const char *file) if (out == NULL) goto err; -#ifndef NO_CHMOD +#if !defined(NO_CHMOD) && !defined(OPENSSL_NO_POSIX_IO) chmod(file, 0600); #endif n = RAND_DATA;