From 1ccfb4e32d9dbc46eb7e0e27608c7f62fc280c3f Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Tue, 20 Sep 2016 17:20:59 -0400 Subject: [PATCH] Shush a MinGW warning in crypto/x509. The MinGW setup on Android already defines this stat macro. Change-Id: Ia8e89195c06ec01d4b5a2fa7357fb8d2d500aa06 Reviewed-on: https://boringssl-review.googlesource.com/11124 Reviewed-by: Kenny Root Reviewed-by: David Benjamin Commit-Queue: David Benjamin CQ-Verified: CQ bot account: commit-bot@chromium.org --- crypto/x509/by_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {