]> granicus.if.org Git - clang/commitdiff
hopefully resolve the windows buildbot issue (retch)
authorChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2010 21:53:15 +0000 (21:53 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2010 21:53:15 +0000 (21:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120061 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/FileManager.cpp

index 27a4dfe5446c8327e5c5d3478abff3b59ad2a75c..00c449e1973aa7ffd1e392365e1e98598eb7d016 100644 (file)
 #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.