From c48ec9d0ffd4eaca0d7abbf70059428f1e46fd4f Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 28 May 2015 19:56:43 +0000 Subject: [PATCH] Including with MSVC is buggy, use a workaround here. llvm-svn: 238469 --- lldb/unittests/Host/SocketTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lldb/unittests/Host/SocketTest.cpp b/lldb/unittests/Host/SocketTest.cpp index a9e14c3..8685c93 100644 --- a/lldb/unittests/Host/SocketTest.cpp +++ b/lldb/unittests/Host/SocketTest.cpp @@ -7,6 +7,12 @@ // //===----------------------------------------------------------------------===// +#if defined(_MSC_VER) && (_HAS_EXCEPTIONS == 0) +// Workaround for MSVC standard library bug, which fails to include when +// exceptions are disabled. +#include +#endif + #include #include "gtest/gtest.h" -- 2.7.4