aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
-rw-r--r--lib/Frontend/CompilerInstance.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp
index 84df382e27..8b6251e6e7 100644
--- a/lib/Frontend/CompilerInstance.cpp
+++ b/lib/Frontend/CompilerInstance.cpp
@@ -48,9 +48,12 @@
#include <fstream>
#include <sys/types.h>
#include <sys/stat.h>
+#include <cstdlib>
#if LLVM_ON_WIN32
#include <windows.h>
+#include <io.h>
+#include <fcntl.h>
#endif
#if LLVM_ON_UNIX
#include <unistd.h>