diff options
Diffstat (limited to 'clang-tools-extra/clangd/Threading.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/Threading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Threading.cpp b/clang-tools-extra/clangd/Threading.cpp index 9f1cbef95c0..af9c179d871 100644 --- a/clang-tools-extra/clangd/Threading.cpp +++ b/clang-tools-extra/clangd/Threading.cpp @@ -102,7 +102,7 @@ void wait(std::unique_lock<std::mutex> &Lock, std::condition_variable &CV, } void setThreadPriority(std::thread &T, ThreadPriority Priority) { -#ifdef HAVE_PTHREAD_H +#if defined(HAVE_PTHREAD_H) && defined(__linux__) sched_param priority; priority.sched_priority = 0; pthread_setschedparam( |

