aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_phone.c
diff options
context:
space:
mode:
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 bacfaa3c4..d817776e7 100755
--- a/channels/chan_phone.c
+++ b/channels/chan_phone.c
@@ -33,6 +33,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"