diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-23 21:53:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-23 21:53:15 +0000 |
commit | 278038b4be17877ec05864054f9f9fc416cafd9b (patch) | |
tree | 52e9b008824bcb68d0e0bbbd1353f3d3c0aef6ec /clang/lib/Basic/FileManager.cpp | |
parent | dd278430a387f1dd916618c3a1b90c14c0064973 (diff) | |
download | bcm5719-llvm-278038b4be17877ec05864054f9f9fc416cafd9b.tar.gz bcm5719-llvm-278038b4be17877ec05864054f9f9fc416cafd9b.zip |
hopefully resolve the windows buildbot issue (retch)
llvm-svn: 120061
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r-- | clang/lib/Basic/FileManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index 27a4dfe5446..00c449e1973 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/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. |