From 1b0c0d91b2ab04619ff22e30d9758e286acf07fc Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Thu, 8 Jun 2017 21:15:44 -0700 Subject: [PATCH] Fix OpenSSLUtils to not include headers the wrong way Summary: This is entirely the wrong way to include these headers, and is being included within an anon namespace so just wrong. Reviewed By: yfeldblum Differential Revision: D5215065 fbshipit-source-id: 499df58c0202f7a1d4482eaa6a0e8b2e1535c763 --- folly/io/async/ssl/OpenSSLUtils.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/folly/io/async/ssl/OpenSSLUtils.cpp b/folly/io/async/ssl/OpenSSLUtils.cpp index c7a0346e..80d90ec0 100644 --- a/folly/io/async/ssl/OpenSSLUtils.cpp +++ b/folly/io/async/ssl/OpenSSLUtils.cpp @@ -22,6 +22,7 @@ #include #include +#include namespace { #ifdef OPENSSL_IS_BORINGSSL @@ -346,11 +347,6 @@ static int boringssl_bio_fd_non_fatal_error(int err) { #if defined(OPENSSL_WINDOWS) -#include -#pragma warning(push, 3) -#include -#pragma warning(pop) - int boringssl_bio_fd_should_retry(int i) { if (i == -1) { return boringssl_bio_fd_non_fatal_error((int)GetLastError()); @@ -360,7 +356,6 @@ int boringssl_bio_fd_should_retry(int i) { #else // !OPENSSL_WINDOWS -#include int boringssl_bio_fd_should_retry(int i) { if (i == -1) { return boringssl_bio_fd_non_fatal_error(errno); -- 2.34.1