summaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-11 13:59:31 +0100
committerMatt Caswell <matt@openssl.org>2016-04-11 14:33:44 +0100
commit3012e650398a83e72f3ce63c3803e06765dae735 (patch)
treef60b6273251f2133374251798498bc0f5b829de0 /crypto/rand
parentf8c3f2b4eda697a35b213d44df627190d03c694f (diff)
Fix the no-posix-io option
Fix a compile failure with no-posix-io Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/randfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index a5b2b7f162..3ee6bf5a16 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;