summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-05 17:21:05 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-05 17:21:05 +0000
commitf9017cd286101a6dfb7d0a5840fe8bb5e1dec64c (patch)
treeff480911f153650a0ea9dc3721b61637223960d3
parent867e303fa56b534d93a5bbd771e78f56696eb69b (diff)
Found a proper "marker" for the gfp_t typedef. Now every 2.6.9 is supported.
r2286 | tzafrir | 2007-03-05 18:14:11 +0200 (Mon, 05 Mar 2007) | 2 lines git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2289 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-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