summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctc4xxp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2008-12-11 16:43:53 +0000
committerShaun Ruffell <sruffell@digium.com>2008-12-11 16:43:53 +0000
commitb449e151cb40d74d6ffb2b64a33b4998d3787ff7 (patch)
tree4eedc306073ed281fe4d75bae13175c2cfe637de /drivers/dahdi/wctc4xxp
parent02b2d069082f1a4afafea1c02e8e021c375ad3fa (diff)
wctc4xxp: Fix compilation issues on 2.6.15 and below kernels. Thanks
tzafrir. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5481 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctc4xxp')
-rw-r--r--drivers/dahdi/wctc4xxp/base.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c
index efb3aba..a0c82fd 100644
--- a/drivers/dahdi/wctc4xxp/base.c
+++ b/drivers/dahdi/wctc4xxp/base.c
@@ -172,6 +172,13 @@ struct csm_create_channel_cmd {
__le16 timeslot;
} __attribute__((packed));
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
+/* also added in RHEL kernels with the OpenInfiniband backport: */
+#if LINUX_VERSION_CODE != KERNEL_VERSION(2,6,9) || !defined(DEFINE_SPINLOCK)
+typedef unsigned gfp_t; /* Added in 2.6.14 */
+#endif
+#endif
+
#define CMD_MSG_TDM_SELECT_BUS_MODE_LEN 30
#define CMD_MSG_TDM_SELECT_BUS_MODE(s) { \
0x00,0x11,0x22,0x33,0x44,0x55, 0xAA,0xBB,0xCC,0xDD,0xEE,0xFF, 0x88,0x9B, \