]> git.openfabrics.org - ~emulex/tmp/compat/.git/commitdiff
compat: header <pcmcia/cs_types.h> was removed in v2.6.36
authorKshitij Kulshreshtha <kkhere.geo@gmail.com>
Sun, 1 Aug 2010 22:02:50 +0000 (00:02 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 2 Aug 2010 18:01:42 +0000 (11:01 -0700)
the header <pcmcia/cs.h> in versions < 2.6.36 requires types defined
in <pcmcia/cs_types.h> so include it first.

Signed-off-by: Kshitij Kulshreshtha <kkhere.geo@gmail.com>
include/pcmcia/cs.h [new file with mode: 0644]

diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h
new file mode 100644 (file)
index 0000000..1c5e0fa
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef _COMPAT_PCMCIA_CS_H
+#define _COMPAT_PCMCIA_CS_H
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
+#include <pcmcia/cs_types.h>
+#endif
+
+#include_next <pcmcia/cs.h>
+#endif