[clangd] Add a cstring include for strerror.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Feb 2018 22:10:39 +0000 (22:10 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Feb 2018 22:10:39 +0000 (22:10 +0000)
Apparently this doesn't get included transitively on some systems.

llvm-svn: 324277

clang-tools-extra/clangd/Context.cpp

index 0a1bacd..2300677 100644 (file)
@@ -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;