ALT Linux repositórios
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 :: Emuladores
RPM: virtualbox
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: VirtualBox-2.1.4-alt-swab.patch
Download
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>