diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-01-05 22:49:18 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-01-05 22:49:18 +0000 |
commit | f396684bc0add51e83c3dbc89f99cd210f0dd31d (patch) | |
tree | 699d5a0a1d114d758d2ec1589afe47e6325c6d72 /drivers/dahdi/wctc4xxp/base.c | |
parent | 79b0934d10d38bd2f627cff37595ff9be913951b (diff) |
Even on older kernels, do not redefine WARN_ON_ONCE if it is already defined.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5636 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctc4xxp/base.c')
-rw-r--r-- | drivers/dahdi/wctc4xxp/base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 816577d..7a554bf 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -73,6 +73,7 @@ } \ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) +#ifndef WARN_ON_ONCE #define WARN_ON_ONCE(__condition) do { \ static int __once = 1; \ if (unlikely(__condition)) { \ @@ -83,6 +84,7 @@ } \ } while(0) #endif +#endif #define INVALID 999 /* Used to mark invalid channels, commands, etc.. */ #define MAX_CHANNEL_PACKETS 5 /* Never let more than 5 outstanding packets exist for any channel. */ |