diff options
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index eef0535265f..ac3c3118044 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -39,6 +39,9 @@ #include <memory> #include <sys/stat.h> #include <system_error> +#if LLVM_ON_UNIX +#include <unistd.h> // for gethostname() +#endif using namespace clang; //===----------------------------------------------------------------------===// |