summaryrefslogtreecommitdiff
path: root/xpp/xpd.h
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-12-18 14:03:04 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-12-18 14:03:04 +0000
commitfd1f7df9b4fae2e319e11043e6b5dfed4b12d621 (patch)
treeb7b85a0abcf950a84d25489aac3dad6835f41d18 /xpp/xpd.h
parent833b602248b2b6ef5efe9e9d80811b03c5d63d75 (diff)
r1726@boole: tzafrir | 2006-12-18 15:58:51 +0200
r1721@boole: tzafrir | 2006-12-18 15:46:42 +0200 Assume every 2.6.9 kernel is a later RHEL4 kernel, which backported the gfp_t typedef. Either way we break some systems). r2938: diego | 2006-12-17 14:22:16 +0200 git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1730 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/xpd.h')
-rw-r--r--xpp/xpd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xpp/xpd.h b/xpp/xpd.h
index 4f19679..6debd03 100644
--- a/xpp/xpd.h
+++ b/xpp/xpd.h
@@ -38,8 +38,11 @@
#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)
typedef unsigned gfp_t; /* Added in 2.6.14 */
#endif
+#endif
#define DEF_PARM(type,name,init,desc) \
type name = init; \
module_param(name, type, 0600); \