diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:27:05 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:27:05 +0000 |
commit | 736d228e663b23f0182816d5b1257f0de3f4baa8 (patch) | |
tree | 0305ff5172e1d234265729e5b360fc4c3124983f /include | |
parent | 3155b01c0324eadfbb99b910134dc4fae1f77209 (diff) |
dahdi: Introduce dahdi_kasprintf for pre 2.6.12 kernels.
kasprintf will be used in upcoming changes and it's not supported on
RHEL4 kernels. This change essentially backports it.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9593 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index b6864ee..5bcf10d 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1285,6 +1285,8 @@ static inline void list_replace(struct list_head *old, struct list_head *new) #define kzalloc(a, b) kcalloc(1, a, b) #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) #define synchronize_rcu() synchronize_kernel() +#define kasprintf dahdi_kasprintf +char *dahdi_kasprintf(gfp_t gfp, const char *fmt, ...); #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11) #if !defined(HAVE_WAIT_FOR_COMPLETION_TIMEOUT) static inline unsigned long @@ -1301,6 +1303,7 @@ wait_for_completion_interruptible_timeout(struct completion *x, return timeout; } #endif + #endif /* 2.6.11 */ #endif /* 2.6.12 */ #endif /* 2.6.14 */ |