]> granicus.if.org Git - clang/commitdiff
Add missing include from r228592
authorBen Langmuir <blangmuir@apple.com>
Mon, 9 Feb 2015 19:30:29 +0000 (19:30 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 9 Feb 2015 19:30:29 +0000 (19:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228594 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/CompilerInvocation.cpp

index eef0535265f402f8c44ceb8b50ab94583d286f45..ac3c31180446ecb07994f2cc1c0217fd114cb451 100644 (file)
@@ -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;
 
 //===----------------------------------------------------------------------===//