summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Host/SocketTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/unittests/Host/SocketTest.cpp')
-rw-r--r--lldb/unittests/Host/SocketTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/unittests/Host/SocketTest.cpp b/lldb/unittests/Host/SocketTest.cpp
index a9e14c31c6f..8685c930338 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 <thread> when
+// exceptions are disabled.
+#include <eh.h>
+#endif
+
#include <thread>
#include "gtest/gtest.h"
OpenPOWER on IntegriCloud