Author: d0k Date: Mon Feb 5 14:10:39 2018 New Revision: 324277 URL: http://llvm.org/viewvc/llvm-project?rev=324277&view=rev Log: [clangd] Add a cstring include for strerror.
Apparently this doesn't get included transitively on some systems. Modified: clang-tools-extra/trunk/clangd/Context.cpp Modified: clang-tools-extra/trunk/clangd/Context.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Context.cpp?rev=324277&r1=324276&r2=324277&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/Context.cpp (original) +++ clang-tools-extra/trunk/clangd/Context.cpp Mon Feb 5 14:10:39 2018 @@ -19,6 +19,7 @@ // It requires support from the runtime: __cxa_thread_atexit. // Rather than detect this, we use the pthread API where available. #include <pthread.h> +#include <cstring> static clang::clangd::Context ¤tContext() { using clang::clangd::Context; static pthread_key_t CtxKey; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits