Package: bochs / 2.6.9+dfsg-3

support-building-under-recent-linux.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Chris Lamb <lamby@debian.org>
Subject: Support building under Linux 4.x (and beyond)

--- a/configure.in
+++ b/configure.in
@@ -1475,17 +1475,17 @@
           AC_MSG_NOTICE([Linux detected as host for PCI host device mapping])
           linux_version=`uname -r`
           case "$linux_version" in
+            2.2*)
+              AC_MSG_ERROR([Linux kernel 2.4, 2.6 or 3.x is required for PCI host device mapping])
+              ;;
             2.4*)
               PCIDEV_MODULE_MAKE_ALL="all-kernel24"
               KERNEL_MODULE_SUFFIX="o"
               ;;
-            2.6*|3.*)
+            *)
               PCIDEV_MODULE_MAKE_ALL="all-kernel26"
               KERNEL_MODULE_SUFFIX="ko"
               ;;
-            *)
-              AC_MSG_ERROR([Linux kernel 2.4, 2.6 or 3.x is required for PCI host device mapping])
-              ;;
           esac
           KERNELDIR="/lib/modules/$linux_version/build"
           LSMOD="lsmod"