forked from OSchip/llvm-project
[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:
parent
49aafec2e6
commit
53966a4ad8
|
@ -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 ¤tContext() {
|
static clang::clangd::Context ¤tContext() {
|
||||||
using clang::clangd::Context;
|
using clang::clangd::Context;
|
||||||
static pthread_key_t CtxKey;
|
static pthread_key_t CtxKey;
|
||||||
|
|
Loading…
Reference in New Issue