diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c index 4445b058..434e5abe 100644 --- a/crypto/x509/by_dir.c +++ b/crypto/x509/by_dir.c @@ -362,7 +362,7 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, postfix, k); } #ifndef OPENSSL_NO_POSIX_IO -# ifdef _WIN32 +# if defined(_WIN32) && !defined(stat) # define stat _stat # endif {