For Windows, use _stat rather than stat
authorRichard Levitte <levitte@openssl.org>
Fri, 14 Jul 2017 04:33:16 +0000 (06:33 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 14 Jul 2017 10:35:26 +0000 (12:35 +0200)
This allows for better flexibility with mixed /M compiler flags

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3930)

crypto/store/loader_file.c

index 570f12ba12aa42e197b2e479a7f5ecf42be094d1..06094bf2746e73be2ff0bb82e96314c8531677ce 100644 (file)
 
 #include "e_os.h"
 
+#ifdef _WIN32
+# define stat    _stat
+#endif
+
 /*-
  *  Password prompting
  *  ------------------