summaryrefslogtreecommitdiffstats
path: root/llvm/utils/KillTheDoctor/system_error.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/KillTheDoctor/system_error.h')
-rw-r--r--llvm/utils/KillTheDoctor/system_error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/utils/KillTheDoctor/system_error.h b/llvm/utils/KillTheDoctor/system_error.h
index 941341270dc..e7ecb4406c4 100644
--- a/llvm/utils/KillTheDoctor/system_error.h
+++ b/llvm/utils/KillTheDoctor/system_error.h
@@ -224,6 +224,11 @@ template <> struct hash<std::error_code>;
#include <cerrno>
#include <string>
+#ifdef LLVM_ON_WIN32
+ // VS 2008 needs this for some of the defines below.
+# include <WinSock2.h>
+#endif
+
namespace llvm {
template <class T, T v>
OpenPOWER on IntegriCloud