aboutsummaryrefslogtreecommitdiffstats
path: root/testing/virtualbox-guest-additions/musl-sched_yield.patch
diff options
context:
space:
mode:
authorBen Allen <bensallen@me.com>2016-01-22 04:40:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-08-15 16:30:06 +0000
commit59e71adbea0f889c3ffb7188fa4b9f988d6b5535 (patch)
treee123bb9c4787d2024dd3043d920131f6bcc8b5f1 /testing/virtualbox-guest-additions/musl-sched_yield.patch
parenta696503b386fcb8b9f521af3693f85752f0e9b4a (diff)
downloadaports-59e71adbea0f889c3ffb7188fa4b9f988d6b5535.tar.bz2
aports-59e71adbea0f889c3ffb7188fa4b9f988d6b5535.tar.xz
testing/virtualbox-guest-additions: new aport
- Userland components to VirtualBox's guest additions, eg. VBoxService, VBoxControl, mount.vboxsf, and a basic init script. - Creates vboxsf group on install to allow VBoxService to auto-mount shared folders.
Diffstat (limited to 'testing/virtualbox-guest-additions/musl-sched_yield.patch')
-rw-r--r--testing/virtualbox-guest-additions/musl-sched_yield.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/virtualbox-guest-additions/musl-sched_yield.patch b/testing/virtualbox-guest-additions/musl-sched_yield.patch
new file mode 100644
index 0000000000..9a807ac8f6
--- /dev/null
+++ b/testing/virtualbox-guest-additions/musl-sched_yield.patch
@@ -0,0 +1,32 @@
+--- 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)
+ sched_yield();
+ #else
+- if (!pthread_yield())
++ if (!sched_yield())
+ #endif
+ {
+ LogFlow(("RTThreadSleep: returning %Rrc (cMillies=%d)\n", VINF_SUCCESS, cMillies));
+@@ -104,7 +104,7 @@
+ #elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU)
+ sched_yield();
+ #else
+- if (!pthread_yield())
++ if (!sched_yield())
+ #endif
+ return VINF_SUCCESS;
+ }
+@@ -130,10 +130,8 @@
+ #endif
+ #ifdef RT_OS_DARWIN
+ pthread_yield_np();
+-#elif defined(RT_OS_SOLARIS) || defined(RT_OS_HAIKU)
+- sched_yield();
+ #else
+- pthread_yield();
++ sched_yield();
+ #endif
+ #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
+ u64TS = ASMReadTSC() - u64TS;