Fix build with CONFIG_PCMCIA disabled
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 19 Jan 2010 23:58:56 +0000 (15:58 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 19 Jan 2010 23:58:56 +0000 (15:58 -0800)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
include/linux/compat-2.6.33.h

index 73fc91c8a0de2603e62c7a9cb97e46e9afc3f1b6..9559f21d17387c9ad40dd9fcdf0d0fe962ec885e 100644 (file)
@@ -6,9 +6,13 @@
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33))
 
 #include <linux/skbuff.h>
+#if defined(CONFIG_PCCARD) || defined(CONFIG_PCCARD_MODULE)
+#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
 #include <pcmcia/cs_types.h>
 #include <pcmcia/cistpl.h>
 #include <pcmcia/ds.h>
+#endif
+#endif
 #include <linux/kfifo.h>
 #include <linux/firmware.h>