aboutsummaryrefslogtreecommitdiffstats
path: root/community/virtualbox-guest-additions/musl-sched_yield.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-01-24 12:27:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-01-24 12:30:02 +0000
commit54c94a12e787b5999338e00b50967103032f722e (patch)
tree0df51903fecda4f6f95a45e36b8c60f588248882 /community/virtualbox-guest-additions/musl-sched_yield.patch
parent262629094f233d25f4c19ed7a07f556f5763b58d (diff)
downloadaports-54c94a12e787b5999338e00b50967103032f722e.tar.bz2
aports-54c94a12e787b5999338e00b50967103032f722e.tar.xz
community/virtualbox-guest-*: move from testing
ref #5722
Diffstat (limited to 'community/virtualbox-guest-additions/musl-sched_yield.patch')
-rw-r--r--community/virtualbox-guest-additions/musl-sched_yield.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/virtualbox-guest-additions/musl-sched_yield.patch b/community/virtualbox-guest-additions/musl-sched_yield.patch
new file mode 100644
index 0000000000..b3012e5c1a
--- /dev/null
+++ b/community/virtualbox-guest-additions/musl-sched_yield.patch
@@ -0,0 +1,32 @@
+--- ./src/VBox/Runtime/r3/posix/thread2-posix.cpp.orig
++++ ./src/VBox/Runtime/r3/posix/thread2-posix.cpp
+@@ -63,7 +63,7 @@
+ #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
+ sched_yield();
+ #else
+- if (!pthread_yield())
++ if (!sched_yield())
+ #endif
+ {
+ LogFlow(("RTThreadSleep: returning %Rrc (cMillies=%d)\n", VINF_SUCCESS, cMillies));
+@@ -100,7 +100,7 @@
+ #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
+ sched_yield();
+ #else
+- if (!pthread_yield())
++ if (!sched_yield())
+ #endif
+ return VINF_SUCCESS;
+ }
+@@ -126,10 +126,8 @@
+ #endif
+ #ifdef RT_OS_DARWIN
+ pthread_yield_np();
+-#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
+- sched_yield();
+ #else
+- pthread_yield();
++ sched_yield();
+ #endif
+ #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
+ u64TS = ASMReadTSC() - u64TS;