diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2010-07-11 19:00:23 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2010-07-11 19:00:23 +0000 |
commit | 168a565cbd7f64a66ed992d08b74622ced0e8d45 (patch) | |
tree | 914b42010de28d6c90748570183e75e6606261f9 /package/acx | |
parent | 208fd71865f629427086fadc0d9ecc96a59ab34c (diff) | |
download | upstream-168a565cbd7f64a66ed992d08b74622ced0e8d45.tar.gz upstream-168a565cbd7f64a66ed992d08b74622ced0e8d45.tar.bz2 upstream-168a565cbd7f64a66ed992d08b74622ced0e8d45.zip |
kernel: fix build problems with recent kernel versions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22137 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/acx')
-rw-r--r-- | package/acx/patches/007-2.6.33_fixes.patch | 15 |
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> |