aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/crypto/ocf/safe/safe.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2011-03-19 17:40:02 +0000
committerHauke Mehrtens <hauke@openwrt.org>2011-03-19 17:40:02 +0000
commitbf2dff596f1f568f58c0adcb3d4fe48be35a60a7 (patch)
treec7140419351334313e99e3a374e6b1e9fb0cbcef /target/linux/generic/files/crypto/ocf/safe/safe.c
parent44eb5fe71a8282143289e464c9add22f8b9cc302 (diff)
downloadmaster-187ad058-bf2dff596f1f568f58c0adcb3d4fe48be35a60a7.tar.gz
master-187ad058-bf2dff596f1f568f58c0adcb3d4fe48be35a60a7.tar.bz2
master-187ad058-bf2dff596f1f568f58c0adcb3d4fe48be35a60a7.zip
kernel: linux/version.h was removed in kernel 2.6.19 and is now replaced by generated/autoconf.h.
This fixes build with kernel 2.6.38. This was only build tested. Thank you philipp64 for reporting git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26237 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/crypto/ocf/safe/safe.c')
-rw-r--r--target/linux/generic/files/crypto/ocf/safe/safe.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/generic/files/crypto/ocf/safe/safe.c b/target/linux/generic/files/crypto/ocf/safe/safe.c
index 7e65101769..de7743154f 100644
--- a/target/linux/generic/files/crypto/ocf/safe/safe.c
+++ b/target/linux/generic/files/crypto/ocf/safe/safe.c
@@ -31,8 +31,11 @@
__FBSDID("$FreeBSD: src/sys/dev/safe/safe.c,v 1.18 2007/03/21 03:42:50 sam Exp $");
*/
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
#endif
#include <linux/module.h>
#include <linux/kernel.h>