aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-23 21:53:15 +0000
committerChris Lattner <sabre@nondot.org>2010-11-23 21:53:15 +0000
commit291fcf02980be85cf13c8a63bb036a19012311df (patch)
treee5e5ae0eb2c41420cbacd1b0b65cf93c19f3ab6a
parent898a061f69e1145bf89a987c08203132b9922a3c (diff)
hopefully resolve the windows buildbot issue (retch)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120061 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Basic/FileManager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp
index 27a4dfe544..00c449e197 100644
--- a/lib/Basic/FileManager.cpp
+++ b/lib/Basic/FileManager.cpp
@@ -28,6 +28,14 @@
#include <map>
#include <set>
#include <string>
+
+// FIXME: This is terrible, we need this for ::close.
+#if !defined(_MSC_VER) && !defined(__MINGW32__)
+#include <unistd.h>
+#include <sys/uio.h>
+#else
+#include <io.h>
+#endif
using namespace clang;
// FIXME: Enhance libsystem to support inode and other fields.