aboutsummaryrefslogtreecommitdiffstats
path: root/testing/virtualbox-guest-additions/musl-sched_yield.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/virtualbox-guest-additions/musl-sched_yield.patch')
-rw-r--r--testing/virtualbox-guest-additions/musl-sched_yield.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/testing/virtualbox-guest-additions/musl-sched_yield.patch b/testing/virtualbox-guest-additions/musl-sched_yield.patch
index 9a807ac8f6..b3012e5c1a 100644
--- a/testing/virtualbox-guest-additions/musl-sched_yield.patch
+++ b/testing/virtualbox-guest-additions/musl-sched_yield.patch
@@ -1,7 +1,7 @@
---- VirtualBox-5.0.12/src/VBox/Runtime/r3/posix/thread2-posix.cpp.orig
-+++ VirtualBox-5.0.12/src/VBox/Runtime/r3/posix/thread2-posix.cpp
-@@ -65,7 +65,7 @@
- #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU)
+--- ./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())
@@ -9,8 +9,8 @@
#endif
{
LogFlow(("RTThreadSleep: returning %Rrc (cMillies=%d)\n", VINF_SUCCESS, cMillies));
-@@ -104,7 +104,7 @@
- #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU)
+@@ -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())
@@ -18,11 +18,11 @@
#endif
return VINF_SUCCESS;
}
-@@ -130,10 +130,8 @@
+@@ -126,10 +126,8 @@
#endif
#ifdef RT_OS_DARWIN
pthread_yield_np();
--#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU)
+-#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
- sched_yield();
#else
- pthread_yield();