KillTheDoctor: Fix VS2008 build.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 12 Oct 2010 19:27:44 +0000 (19:27 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 12 Oct 2010 19:27:44 +0000 (19:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116330 91177308-0d34-0410-b5e6-96231b3b80d8

utils/KillTheDoctor/system_error.h

index 941341270dce16342a896ef48f6c73b948e50399..e7ecb4406c4e9b79d8ffe2f0cda0f2c7bcfbdb59 100644 (file)
@@ -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>