diff options
author | Andy Polyakov <appro@openssl.org> | 2018-03-19 18:12:31 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-03-21 10:12:36 +0100 |
commit | 9d9dc6ac852a74836ba15a3ed10b3ecb6581fd1b (patch) | |
tree | 2cd4d510798d82d9a30c2de74d70980314f2ea0d /crypto/o_fopen.c | |
parent | Add dladdr() for AIX (diff) | |
download | openssl-9d9dc6ac852a74836ba15a3ed10b3ecb6581fd1b.tar.xz openssl-9d9dc6ac852a74836ba15a3ed10b3ecb6581fd1b.zip |
o_fopen.c,rand/randfile.c: compensate for e_os.h omission.
At earlier point e_os.h was omitted from a number of headers (in order
to emphasize OS neutrality), but this affected o_fopen.c and randfile.c
which are not OS-neutral, and contain some Win32-specific code.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5676)
Diffstat (limited to 'crypto/o_fopen.c')
-rw-r--r-- | crypto/o_fopen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/o_fopen.c b/crypto/o_fopen.c index a3a006574d..951d034dda 100644 --- a/crypto/o_fopen.c +++ b/crypto/o_fopen.c @@ -12,6 +12,9 @@ #if !defined(OPENSSL_NO_STDIO) # include <stdio.h> +# ifdef _WIN32 +# include <windows.h> +# endif FILE *openssl_fopen(const char *filename, const char *mode) { |