siit: fix build
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Apr 2010 17:17:06 +0000 (17:17 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
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/

SVN-Revision: 20993

package/siit/src/siit.c

index f458f5de4b28fd16e0f6890be7a6390fc013ce32..5362c1daaec76ec66d68dee429b0d126580378fe 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>