[clangd] Add a cstring include for strerror.

Apparently this doesn't get included transitively on some systems.

llvm-svn: 324277
This commit is contained in:
Benjamin Kramer 2018-02-05 22:10:39 +00:00
parent 49aafec2e6
commit 53966a4ad8
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@
// It requires support from the runtime: __cxa_thread_atexit. // It requires support from the runtime: __cxa_thread_atexit.
// Rather than detect this, we use the pthread API where available. // Rather than detect this, we use the pthread API where available.
#include <pthread.h> #include <pthread.h>
#include <cstring>
static clang::clangd::Context &currentContext() { static clang::clangd::Context &currentContext() {
using clang::clangd::Context; using clang::clangd::Context;
static pthread_key_t CtxKey; static pthread_key_t CtxKey;