[zaptel-commits] tzafrir: branch 1.2 r2286 - /branches/1.2/xpp/xpd.h

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Mon Mar 5 09:14:11 MST 2007


Author: tzafrir
Date: Mon Mar  5 10:14:11 2007
New Revision: 2286

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2286
Log:
Found a proper "marker" for the gfp_t typedef. Now every 2.6.9 is supported.

Modified:
    branches/1.2/xpp/xpd.h

Modified: branches/1.2/xpp/xpd.h
URL: http://svn.digium.com/view/zaptel/branches/1.2/xpp/xpd.h?view=diff&rev=2286&r1=2285&r2=2286
==============================================================================
--- branches/1.2/xpp/xpd.h (original)
+++ branches/1.2/xpp/xpd.h Mon Mar  5 10:14:11 2007
@@ -46,8 +46,8 @@
 
 #ifdef __KERNEL__
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
-/* pretend every 2.6.9 is later RHEL */
-#if LINUX_VERSION_CODE != KERNEL_VERSION(2,6,9) 
+/* 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



More information about the zaptel-commits mailing list