]> granicus.if.org Git - clang/commitdiff
Driver: Explicitly include <unistd.h>, libstdc++'s <map> pulls it in, libc++ doesn't.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 23 Sep 2011 21:03:19 +0000 (21:03 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 23 Sep 2011 21:03:19 +0000 (21:03 +0000)
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

lib/Driver/Driver.cpp

index d64eab5999bd17d7641822a00fd8ec1b0253e305..40e68e4f546168ce1f524acd626b27d6ffc71150 100644 (file)
 
 #include <map>
 
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#elif defined(_WIN32)
+#include <direct.h>
+#endif
+
 using namespace clang::driver;
 using namespace clang;