aboutsummaryrefslogtreecommitdiffstats
path: root/package/acx/patches/007-2.6.33_fixes.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-07-11 19:00:23 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2010-07-11 19:00:23 +0000
commit02a147de0c298c612049409fd4d64b12dc3d9ba1 (patch)
treee925e5933e9a73b69ca93f844c6b29cabdab717d /package/acx/patches/007-2.6.33_fixes.patch
parent91ce82ef77211009cb21988845a7405f5ddbfcc6 (diff)
downloadupstream-02a147de0c298c612049409fd4d64b12dc3d9ba1.tar.gz
upstream-02a147de0c298c612049409fd4d64b12dc3d9ba1.tar.bz2
upstream-02a147de0c298c612049409fd4d64b12dc3d9ba1.zip
kernel: fix build problems with recent kernel versions
SVN-Revision: 22137
Diffstat (limited to 'package/acx/patches/007-2.6.33_fixes.patch')
-rw-r--r--package/acx/patches/007-2.6.33_fixes.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/acx/patches/007-2.6.33_fixes.patch b/package/acx/patches/007-2.6.33_fixes.patch
new file mode 100644
index 0000000000..338b1c66ff
--- /dev/null
+++ b/package/acx/patches/007-2.6.33_fixes.patch
@@ -0,0 +1,15 @@
+--- a/pci.c
++++ b/pci.c
+@@ -35,8 +35,12 @@
+
+ /* Linux 2.6.18+ uses <linux/utsrelease.h> */
+ #ifndef UTS_RELEASE
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
++#include <generated/utsrelease.h>
++#else
+ #include <linux/utsrelease.h>
+ #endif
++#endif
+
+ #include <linux/compiler.h> /* required for Lx 2.6.8 ?? */
+ #include <linux/kernel.h>