aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authordecke <decke@FreeBSD.org>2011-03-18 21:31:05 +0800
committerdecke <decke@FreeBSD.org>2011-03-18 21:31:05 +0800
commitf4b26e75d3288119a9a1619a26b0e743f33c2a22 (patch)
treebe549e315c449c7ebf56e50571cbd01a285066c1 /emulators
parent47f6414e1685e6fba8d34fc34a8f857b42f69ce4 (diff)
downloadfreebsd-ports-gnome-f4b26e75d3288119a9a1619a26b0e743f33c2a22.tar.gz
freebsd-ports-gnome-f4b26e75d3288119a9a1619a26b0e743f33c2a22.tar.zst
freebsd-ports-gnome-f4b26e75d3288119a9a1619a26b0e743f33c2a22.zip
- Fix build on current after removal of uio_yield()
Submitted by: Michael Butler <imb@protected-networks.net> Reported by: pointyhat (via pav)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-thread-r0drv-freebsd.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-thread-r0drv-freebsd.c b/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-thread-r0drv-freebsd.c
new file mode 100644
index 000000000000..e379ac172b4a
--- /dev/null
+++ b/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-thread-r0drv-freebsd.c
@@ -0,0 +1,16 @@
+*** ./src/VBox/Runtime/r0drv/freebsd/thread-r0drv-freebsd.c~ Wed Dec 1 12:09:43 2010
+--- ./src/VBox/Runtime/r0drv/freebsd/thread-r0drv-freebsd.c Wed Feb 9 13:44:28 2011
+***************
+*** 101,107 ****
+--- 101,111 ----
+
+ RTDECL(bool) RTThreadYield(void)
+ {
++ #if (__FreeBSD_version >= 900032)
++ kern_yield(curthread->td_user_pri);
++ #else
+ uio_yield();
++ #endif
+ return false; /** @todo figure this one ... */
+ }
+