summaryrefslogtreecommitdiff
path: root/xpp
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-05 17:02:20 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-05 17:02:20 +0000
commite33deb5c13b317006a6e953b037729914a10cbd5 (patch)
treef0e2f7cfc25a6eb51ef41c7d88e606bc99f3f263 /xpp
parent2c90e2371bcc9ec397d74f0498fc524657f6c4e2 (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/branches/1.4@2288 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp')
-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