From 698b431ad9afbdd1da15c0219d88ee0bd3607df7 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Tue, 3 Oct 2017 15:19:02 -0400 Subject: Simplify header includes in socket.cpp This got a little contorted in os_utils.cpp because of need to support Boost asio along with system dependent interfaces. Here it's simple: Boost or Unix or Winsock. --- src/lib/utils/http_util/socket.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/lib') diff --git a/src/lib/utils/http_util/socket.cpp b/src/lib/utils/http_util/socket.cpp index 0d94c9a8e..a2b9d5567 100644 --- a/src/lib/utils/http_util/socket.cpp +++ b/src/lib/utils/http_util/socket.cpp @@ -8,6 +8,7 @@ #include #include +#include #include #if defined(BOTAN_HAS_BOOST_ASIO) @@ -18,26 +19,19 @@ */ #define BOOST_ASIO_DISABLE_SERIAL_PORT #include -#endif - -#if defined(BOTAN_TARGET_OS_TYPE_IS_UNIX) -#if !defined(BOTAN_HAS_BOOST_ASIO) +#elif defined(BOTAN_TARGET_OS_TYPE_IS_UNIX) #include #include #include #include #include -#endif + #include #elif defined(BOTAN_TARGET_OS_TYPE_IS_WINDOWS) - #include - #define NOMINMAX 1 -#if !defined(BOTAN_HAS_BOOST_ASIO) #include #include -#endif #include #endif -- cgit v1.2.3