This _WIN32-specific patch makes it possible to "wrap" OpenSSL in another
[openssl.git] / crypto / x509 / by_dir.c
index b355de9..170cd89 100644 (file)
@@ -392,6 +392,9 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name,
                                        postfix,k);
                                }
 #ifndef OPENSSL_NO_POSIX_IO
+#ifdef _WIN32
+#define stat _stat
+#endif
                        {
                        struct stat st;
                        if (stat(b->data,&st) < 0)