From 6bd419c4d06d6b555fa98f57ba95f1ee4a603ca6 Mon Sep 17 00:00:00 2001 From: Beat Gaetzi Date: Thu, 10 Sep 2009 23:16:56 +0000 Subject: - 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 [1], Bernhard Froehlich [2] On behalf of: vbox@ (decke, dhn, miwi, nox) --- ...-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 emulators/virtualbox-ose-legacy/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c (limited to 'emulators/virtualbox-ose-legacy/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c') diff --git a/emulators/virtualbox-ose-legacy/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c b/emulators/virtualbox-ose-legacy/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c new file mode 100644 index 000000000000..c2cdf7963fd7 --- /dev/null +++ b/emulators/virtualbox-ose-legacy/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); -- cgit v1.2.3