summaryrefslogtreecommitdiff
path: root/xpp/xpd.h
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-12-18 13:46:42 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-12-18 13:46:42 +0000
commit3843e415af32e96913ee5d977f9e2cc13db9aa47 (patch)
treea5daabfda6dcd9fca3a901f5edddfc1431b9ce6c /xpp/xpd.h
parent1fd4bee7bd8890857072a190240b835009d2c1e9 (diff)
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.2@1721 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); \