summaryrefslogtreecommitdiff
path: root/xpp/xpd.h
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-05 16:14:11 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-05 16:14:11 +0000
commit5e5f0cdcc011a9926dc139c296849918af0b2742 (patch)
treea18d9e6bb388cf1da0ca8384deedae37f6a02c94 /xpp/xpd.h
parent8ccf972bba2a4f54a9affb8223b330aa3e036d07 (diff)
Found a proper "marker" for the gfp_t typedef. Now every 2.6.9 is supported.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2286 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/xpd.h')
-rw-r--r--xpp/xpd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpp/xpd.h b/xpp/xpd.h
index b3dc569..49272ca 100644
--- a/xpp/xpd.h
+++ b/xpp/xpd.h
@@ -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