aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/os_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/os_utils.cpp')
-rw-r--r--src/lib/utils/os_utils.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp
index f6ac38c0a..bfb3fcfe3 100644
--- a/src/lib/utils/os_utils.cpp
+++ b/src/lib/utils/os_utils.cpp
@@ -21,9 +21,8 @@
*/
#define BOOST_ASIO_DISABLE_SERIAL_PORT
#include <boost/asio.hpp>
-#endif
-#if defined(BOTAN_TARGET_OS_TYPE_IS_UNIX)
+#elif defined(BOTAN_TARGET_OS_TYPE_IS_UNIX)
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/resource.h>
@@ -37,7 +36,7 @@
#elif defined(BOTAN_TARGET_OS_TYPE_IS_WINDOWS)
#define NOMINMAX 1
#include <winsock2.h>
- #include <WS2tcpip.h>
+ #include <ws2tcpip.h>
#include <windows.h>
#endif
@@ -86,7 +85,7 @@ OS::open_socket(const std::string& hostname,
return std::unique_ptr<OS::Socket>(new Asio_Socket(hostname, service));
-#elif defined(BOTAN_TARGET_OS_IS_WINDOWS)
+#elif defined(BOTAN_TARGET_OS_TYPE_IS_WINDOWS)
class Winsock_Socket : public OS::Socket
{