summaryrefslogtreecommitdiff
path: root/channels/chan_phone.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-11-11 14:58:57 +0000
committerMark Spencer <markster@digium.com>2004-11-11 14:58:57 +0000
commitec3dc05bf74ea1d2a4a6e768ad9150151cf379e6 (patch)
tree6d79006c10bb0980e36e76f84216dd1dc580b59b /channels/chan_phone.c
parent53d9aa13eb953e122e610f8a85baa1a257b13faf (diff)
Fix chan_phone for kernel 2.6 (bug #2831)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_phone.c')
-rwxr-xr-xchannels/chan_phone.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c
index b81c5b04d..12c009776 100755
--- a/channels/chan_phone.c
+++ b/channels/chan_phone.c
@@ -34,6 +34,10 @@
#include <sys/ioctl.h>
#include <linux/telephony.h>
/* Still use some IXJ specific stuff */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+# include <linux/compiler.h>
+#endif
#include <linux/ixjuser.h>
#include "DialTone.h"