[cfe-commits] r140414 - /cfe/trunk/lib/Driver/Driver.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Sep 23 14:03:19 PDT 2011
Author: d0k
Date: Fri Sep 23 16:03:19 2011
New Revision: 140414
URL: http://llvm.org/viewvc/llvm-project?rev=140414&view=rev
Log:
Driver: Explicitly include <unistd.h>, libstdc++'s <map> pulls it in, libc++ doesn't.
Also, on windows, chdir seems to live in <direct.h>.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=140414&r1=140413&r2=140414&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Fri Sep 23 16:03:19 2011
@@ -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;
More information about the cfe-commits
mailing list