[PATCH] D53922: [clangd] fix non linux build

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 31 02:08:16 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL345700: [clangd] fix non linux build (authored by devnexen, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D53922?vs=171870&id=171873#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D53922

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
@@ -102,7 +102,7 @@
 }
 
 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(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53922.171873.patch
Type: text/x-patch
Size: 467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181031/a24a82ba/attachment.bin>


More information about the llvm-commits mailing list