[svn-commits] sruffell: linux/trunk r5481 - /linux/trunk/drivers/dahdi/wctc4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Dec 11 10:43:53 CST 2008


Author: sruffell
Date: Thu Dec 11 10:43:53 2008
New Revision: 5481

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5481
Log:
wctc4xxp:  Fix compilation issues on 2.6.15 and below kernels.  Thanks
tzafrir.

Modified:
    linux/trunk/drivers/dahdi/wctc4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wctc4xxp/base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=5481&r1=5480&r2=5481
==============================================================================
--- linux/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctc4xxp/base.c Thu Dec 11 10:43:53 2008
@@ -171,6 +171,13 @@
 	__le16 channel_type;
 	__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) { \




More information about the svn-commits mailing list