freebsd-ports/emulators/virtualbox-ose-legacy/files/patch-src-VBox-Devices-Storage-DrvHostDVD.cpp
Beat Gaetzi 804cd7e393 - Update to 3.2.2
- Update guest additions to 3.2.2.
- Add option to build with VNC support (Disabled by default)
- Add option to build with VDE support (Disabled by default) [1]
- Add option to build webservice (Disabled by default) [2]
- Fix build with QT4 support disabled and X11 support enabled. [3]
- Fix build with X11 support disabled. [4]
- Replace custom pkg-install.in script with GROUPS framework.
- Do not build Guest Additions in virtualbox-ose port.
- Implement locking/unlocking of host DVD drive. [5]
- Add LICENSE and LICENSE_FILE.

PR:		ports/146752 [5]
Submitted by:	mtm@ [5]
Requested by:	Mario Lobo <lobo AT bsd.com.br> [1],
		Hubert Tournier <hubert AT frbsd.org> [2]
Reported by:	Emil Mikulic <emil AT dmr.ath.cx> [3], mm@ [4]

Many thanks to the VirtualBox developers (especially Alexander Eichner
for all his work and help), all tester and patch submitter and the whole
vbox@ team especially decke@.
2010-06-07 16:31:58 +00:00

14 lines
440 B
C++

--- src/VBox/Devices/Storage/DrvHostDVD.cpp.orig 2010-05-20 10:28:06.000000000 +0300
+++ src/VBox/Devices/Storage/DrvHostDVD.cpp 2010-05-20 10:37:47.000000000 +0300
@@ -224,7 +224,7 @@
*/
static DECLCALLBACK(int) drvHostDvdDoLock(PDRVHOSTBASE pThis, bool fLock)
{
-#ifdef RT_OS_DARWIN
+#if defined(RT_OS_FREEBSD) || defined(RT_OS_DARWIN)
uint8_t abCmd[16] =
{
SCSI_PREVENT_ALLOW_MEDIUM_REMOVAL, 0, 0, 0, fLock, 0,