summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-03-23 21:56:01 +0000
committerShaun Ruffell <sruffell@digium.com>2010-03-23 21:56:01 +0000
commitc970ad94ef9c14e231cef601fccccc37300ff210 (patch)
tree2bbd427fa18eb285288fe7491b4c9c2d561c0839
parent5fc0a84a8983dab9ce8170b14306e3f2dd4e8ed0 (diff)
dahdi: 'clamp' may already be backported.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8399 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--include/dahdi/kernel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 42a59d9..22fc3ee 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -1186,7 +1186,9 @@ static inline short dahdi_txtone_nextsample(struct dahdi_chan *ss)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
#define KERN_CONT ""
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
-#define clamp(x, low, high) min (max (low, x), high)
+#ifndef clamp
+#define clamp(x, low, high) min(max(low, x), high)
+#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
/* Some distributions backported fatal_signal_pending so we'll use a macro to