OSDN Git Service

Include <cstdlib> for std::abort() in clangd
authorDimitry Andric <dimitry@andric.com>
Thu, 23 Jan 2020 09:11:17 +0000 (10:11 +0100)
committerDimitry Andric <dimitry@andric.com>
Fri, 24 Jan 2020 19:52:37 +0000 (20:52 +0100)
This fixes a "not a member of 'std'" error with e.g. Fedora 32.

Closes: #105

clang-tools-extra/clangd/Shutdown.cpp

index dfea46d..36d9775 100644 (file)
@@ -9,6 +9,7 @@
 #include "Shutdown.h"
 
 #include <atomic>
+#include <cstdlib>
 #include <thread>
 
 namespace clang {