summaryrefslogtreecommitdiff
path: root/emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c
diff options
context:
space:
mode:
authorBeat Gaetzi <beat@FreeBSD.org>2009-09-10 23:16:56 +0000
committerBeat Gaetzi <beat@FreeBSD.org>2009-09-10 23:16:56 +0000
commit6bd419c4d06d6b555fa98f57ba95f1ee4a603ca6 (patch)
treedf579bb17f2b9457d6f490b41ba5a6dcd666317c /emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c
parentUpdate to 0.55. (diff)
- Update to 3.0.51r22683. This version adds support for tap interface
networking done by nox@, working VT-x, ACPI and Host DVD/CD access support and several FreeBSD related bugfixes. - Update Guest Additions to 3.0.6. - Respect CC and CXX variables. [1] - Add support for WITHOUT_X11 build. [2] - Fix pkg-plist for WITHOUT_NLS. [2] - Use LocalConfig.kmk to simplify configuration. [2] - Install vboxapi module and fix xpcom.vboxxpcom python api. [2] PR: ports/138063 [1] Submitted by: Anonymous <swell dot k at gmail dot com> [1], Bernhard Froehlich <decke AT bluelife.at> [2] On behalf of: vbox@ (decke, dhn, miwi, nox)
Diffstat (limited to 'emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c')
-rw-r--r--emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c b/emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c
new file mode 100644
index 000000000000..c2cdf7963fd7
--- /dev/null
+++ b/emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c
@@ -0,0 +1,41 @@
+Index: src/VBox/Runtime/r0drv/freebsd/semevent-r0drv-freebsd.c
+@@ -205,15 +205,23 @@ static int rtSemEventWait(RTSEMEVENT Eve
+
+ RTSpinlockRelease(pEventInt->hSpinLock, &Tmp);
+
++#if __FreeBSD_version >=800026
+ if (fInterruptible)
+ rc = sleepq_timedwait_sig(pEventInt, 0);
+ else
+ rc = sleepq_timedwait(pEventInt, 0);
++#else
++ if (fInterruptible)
++ rc = sleepq_timedwait_sig(pEventInt);
++ else
++ rc = sleepq_timedwait(pEventInt);
++#endif
+ }
+ else
+ {
+ RTSpinlockRelease(pEventInt->hSpinLock, &Tmp);
+
++#if __FreeBSD_version >=800026
+ if (fInterruptible)
+ rc = sleepq_wait_sig(pEventInt, 0);
+ else
+@@ -221,6 +229,15 @@ static int rtSemEventWait(RTSEMEVENT Eve
+ rc = 0;
+ sleepq_wait(pEventInt, 0);
+ }
++#else
++ if (fInterruptible)
++ rc = sleepq_wait_sig(pEventInt);
++ else
++ {
++ rc = 0;
++ sleepq_wait(pEventInt);
++ }
++#endif
+ }
+
+ RTSpinlockAcquire(pEventInt->hSpinLock, &Tmp);