summaryrefslogtreecommitdiff
path: root/xpp/xpd.h
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-12-18 13:58:51 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-12-18 13:58:51 +0000
commita7c2a68ec23647ec46e55d2c8202685dfe9ced86 (patch)
treedb3b08905a67c03790da1c7fca9a8f0533f99158 /xpp/xpd.h
parentf823ce0e18068ad478473cd595c64d2a9e078273 (diff)
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/branches/1.4@1726 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); \