r228594 - Add missing include from r228592

Ben Langmuir blangmuir at apple.com
Mon Feb 9 11:30:29 PST 2015


Author: benlangmuir
Date: Mon Feb  9 13:30:29 2015
New Revision: 228594

URL: http://llvm.org/viewvc/llvm-project?rev=228594&view=rev
Log:
Add missing include from r228592

Modified:
    cfe/trunk/lib/Frontend/CompilerInvocation.cpp

Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=228594&r1=228593&r2=228594&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Mon Feb  9 13:30:29 2015
@@ -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;
 
 //===----------------------------------------------------------------------===//





More information about the cfe-commits mailing list