From a393e1cc0e1d29c8b4c7daef6ff4c1d9bf11f78a Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Tue, 24 Jan 2017 13:28:28 -0800 Subject: [PATCH] Ensure portability/Windows.h is included before OpenSSL headers Summary: Because OpenSSL is evil to Windows, and you have to forcefully include winsock2 before winsock. Reviewed By: yfeldblum Differential Revision: D4453742 fbshipit-source-id: 3b1b5b1f999722559693164148245f52b1e94104 --- folly/portability/OpenSSL.h | 3 +++ folly/ssl/detail/SSLSessionImpl.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/folly/portability/OpenSSL.h b/folly/portability/OpenSSL.h index dc6dade7..7990e137 100644 --- a/folly/portability/OpenSSL.h +++ b/folly/portability/OpenSSL.h @@ -16,6 +16,9 @@ #pragma once +// This must come before the OpenSSL includes. +#include + #include #include diff --git a/folly/ssl/detail/SSLSessionImpl.h b/folly/ssl/detail/SSLSessionImpl.h index 6b4a9ea8..72fb8200 100644 --- a/folly/ssl/detail/SSLSessionImpl.h +++ b/folly/ssl/detail/SSLSessionImpl.h @@ -17,7 +17,9 @@ #pragma once #include -#include + +#include + #include namespace folly { -- 2.34.1