diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index eef0535265f4..ac3c31180446 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -39,6 +39,9 @@ #include #include #include +#if LLVM_ON_UNIX +#include // for gethostname() +#endif using namespace clang; //===----------------------------------------------------------------------===//