From: Christopher Dykes Date: Fri, 9 Jun 2017 04:15:44 +0000 (-0700) Subject: Fix OpenSSLUtils to not include headers the wrong way X-Git-Tag: v2017.06.12.00~8 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=1b0c0d91b2ab04619ff22e30d9758e286acf07fc 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 --- 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);