siit: fix build
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 18 Apr 2010 17:17:06 +0000 (17:17 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 18 Apr 2010 17:17:06 +0000 (17:17 +0000)
Starting with kernel 2.6.33 autoconf.h is in generated/ and not linux/

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20993 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/siit/src/siit.c

index f458f5d..5362c1d 100644 (file)
@@ -4,9 +4,13 @@
  *
  */
 
+#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/version.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>       /* printk() */
 #include <linux/slab.h>
This page took 0.025989 seconds and 4 git commands to generate.