[cfe-commits] r120061 - /cfe/trunk/lib/Basic/FileManager.cpp
Chris Lattner
sabre at nondot.org
Tue Nov 23 13:53:15 PST 2010
Author: lattner
Date: Tue Nov 23 15:53:15 2010
New Revision: 120061
URL: http://llvm.org/viewvc/llvm-project?rev=120061&view=rev
Log:
hopefully resolve the windows buildbot issue (retch)
Modified:
cfe/trunk/lib/Basic/FileManager.cpp
Modified: cfe/trunk/lib/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/FileManager.cpp?rev=120061&r1=120060&r2=120061&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/FileManager.cpp (original)
+++ cfe/trunk/lib/Basic/FileManager.cpp Tue Nov 23 15:53:15 2010
@@ -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.
More information about the cfe-commits
mailing list