diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-05-01 16:42:35 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-05-01 16:42:35 +0000 |
commit | bed6f2d95d74e8fac9d20ff2bc48fa204624eea5 (patch) | |
tree | 462cabf1a3b69261cffe5297b47b672d6fcf0863 /drivers/dahdi | |
parent | e210e04ff8e1bafdd09557aab2ccb0650d099190 (diff) |
wctc4xxp: Defined gfp_t for earlier kernels.
This definition was just copied from the xpp driver.
DAHDI-253
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6550 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r-- | drivers/dahdi/wctc4xxp/base.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index f1e466b..aea02d6 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -91,6 +91,13 @@ #endif #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) +/* 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 + /* The total number of active channels over which the driver will start polling * the card every 10 ms. */ #define POLLING_CALL_THRESHOLD 40 |