[PATCH] D53922: [clangd] fix non linux build
David CARLIER via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 31 01:47:19 PDT 2018
devnexen created this revision.
devnexen added reviewers: kadircet, sammccall.
devnexen created this object with visibility "All Users".
Herald added subscribers: cfe-commits, jfb, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov, krytarowski.
There is no SCHED_IDLE semantic equivalent in BSD systems.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53922
Files:
clangd/Threading.cpp
Index: clangd/Threading.cpp
===================================================================
--- clangd/Threading.cpp
+++ 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.171870.patch
Type: text/x-patch
Size: 395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181031/c40d52a7/attachment.bin>
More information about the cfe-commits
mailing list