From 71d57be52e7c4d5389dfe950ad9ee4e54aea5411 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 14 Jul 2017 06:33:16 +0200 Subject: [PATCH] For Windows, use _stat rather than stat This allows for better flexibility with mixed /M compiler flags Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/3930) --- crypto/store/loader_file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/store/loader_file.c b/crypto/store/loader_file.c index 570f12ba12..06094bf274 100644 --- a/crypto/store/loader_file.c +++ b/crypto/store/loader_file.c @@ -30,6 +30,10 @@ #include "e_os.h" +#ifdef _WIN32 +# define stat _stat +#endif + /*- * Password prompting * ------------------ -- 2.25.1