diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-23 21:03:19 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-23 21:03:19 +0000 |
commit | 5cca4eb629c2ae96f3a9251512883285fe0f270c (patch) | |
tree | eeb8650671b4894363e4550e74e17c433cef266d /lib/Driver/Driver.cpp | |
parent | 4f163424152259f5dafe6ccc696c97a80fc504fc (diff) |
Driver: Explicitly include <unistd.h>, libstdc++'s <map> pulls it in, libc++ doesn't.
Also, on windows, chdir seems to live in <direct.h>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index d64eab5999..40e68e4f54 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -43,6 +43,12 @@ #include <map> +#if defined(HAVE_UNISTD_H) +#include <unistd.h> +#elif defined(_WIN32) +#include <direct.h> +#endif + using namespace clang::driver; using namespace clang; |