Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37037682
en ru br
ALT Linux repos
S:7.0.10-alt2
5.0: 3.0.4-alt0.M50.1
4.1: 2.1.4-alt0.M41.5
4.0:
+backports:1.6.6-alt0.M40.2

Group :: Emulators
RPM: virtualbox

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: VirtualBox-2.1.4-alt-swab.patch
Download


diff --git a/VirtualBox/src/VBox/Devices/Storage/DrvHostDVD.cpp b/VirtualBox/src/VBox/Devices/Storage/DrvHostDVD.cpp
index 4838288..b5be4b6 100644
--- a/VirtualBox/src/VBox/Devices/Storage/DrvHostDVD.cpp
+++ b/VirtualBox/src/VBox/Devices/Storage/DrvHostDVD.cpp
@@ -50,7 +50,12 @@
 # define _LINUX_BYTEORDER_SWAB_H
 # define _LINUX_BYTEORDER_SWABB_H
 /* Those macros that are needed are defined in the header below */
+# include <linux/version.h>
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,28)
 # include "swab.h"
+#else
+# include <linux/swab.h>
+#endif
 # include <linux/cdrom.h>
 # include <sys/fcntl.h>
 # include <errno.h>
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin