summaryrefslogtreecommitdiffstats
path: root/llvm/utils/KillTheDoctor
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-10-12 19:27:44 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-10-12 19:27:44 +0000
commit65c1c43c137486e7af73d57546e3716e1080745c (patch)
tree6843759a60cbecaa135e1669544bb754a76beec2 /llvm/utils/KillTheDoctor
parent6e9cf630f815780bb84533a51bcbe9c840ded15b (diff)
downloadbcm5719-llvm-65c1c43c137486e7af73d57546e3716e1080745c.tar.gz
bcm5719-llvm-65c1c43c137486e7af73d57546e3716e1080745c.zip
KillTheDoctor: Fix VS2008 build.
llvm-svn: 116330
Diffstat (limited to 'llvm/utils/KillTheDoctor')
-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