void-packages/srcpkgs/cbang/patches/sched_yield.patch
Jürgen Buchmüller 576470cb3a New package: cbang-1.3.3
Prerequisite for building fah-viewer of Folding@Home.
2020-04-06 09:11:50 +02:00

11 lines
328 B
Diff

--- src/cbang/os/Thread.cpp 2020-01-20 01:56:06.000000000 +0100
+++ src/cbang/os/Thread.cpp 2020-04-06 09:00:02.117699569 +0200
@@ -214,7 +214,7 @@
void Thread::yield() {
#ifdef _WIN32
SwitchToThread();
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) || !defined(__GLIBC__)
sched_yield();
#else
pthread_yield();