This revision was automatically updated to reflect the committed changes. Closed by commit rL345729: Delete dependency on config.h (authored by kadircet, committed by ). Herald added a subscriber: llvm-commits.
Repository: rL LLVM https://reviews.llvm.org/D53935 Files: clang-tools-extra/trunk/clangd/Threading.cpp Index: clang-tools-extra/trunk/clangd/Threading.cpp =================================================================== --- clang-tools-extra/trunk/clangd/Threading.cpp +++ clang-tools-extra/trunk/clangd/Threading.cpp @@ -1,11 +1,10 @@ #include "Threading.h" #include "Trace.h" #include "llvm/ADT/ScopeExit.h" -#include "llvm/Config/config.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/Support/Threading.h" #include <thread> -#ifdef HAVE_PTHREAD_H +#ifdef __USE_POSIX #include <pthread.h> #endif @@ -102,7 +101,7 @@ } void setThreadPriority(std::thread &T, ThreadPriority Priority) { -#if defined(HAVE_PTHREAD_H) && defined(__linux__) +#ifdef __linux__ sched_param priority; priority.sched_priority = 0; pthread_setschedparam(
Index: clang-tools-extra/trunk/clangd/Threading.cpp =================================================================== --- clang-tools-extra/trunk/clangd/Threading.cpp +++ clang-tools-extra/trunk/clangd/Threading.cpp @@ -1,11 +1,10 @@ #include "Threading.h" #include "Trace.h" #include "llvm/ADT/ScopeExit.h" -#include "llvm/Config/config.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/Support/Threading.h" #include <thread> -#ifdef HAVE_PTHREAD_H +#ifdef __USE_POSIX #include <pthread.h> #endif @@ -102,7 +101,7 @@ } void setThreadPriority(std::thread &T, ThreadPriority Priority) { -#if defined(HAVE_PTHREAD_H) && defined(__linux__) +#ifdef __linux__ sched_param priority; priority.sched_priority = 0; pthread_setschedparam(
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits