[clang-tools-extra] r324277 - [clangd] Add a cstring include for strerror.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 5 14:10:39 PST 2018


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 &currentContext() {
   using clang::clangd::Context;
   static pthread_key_t CtxKey;




More information about the cfe-commits mailing list