Fix chan_phone for kernel 2.6 (bug #2831)
authorMark Spencer <markster@digium.com>
Thu, 11 Nov 2004 14:58:57 +0000 (14:58 +0000)
committerMark Spencer <markster@digium.com>
Thu, 11 Nov 2004 14:58:57 +0000 (14:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4202 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_phone.c

index b81c5b0..12c0097 100755 (executable)
 #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"