diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 244326cd82c1ff3973c9d9f7e7167756af9ff804..c8c151262edfa0cf7331b34f788f0a5607427d06 100644 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -49,8 +49,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") /* Still use some IXJ specific stuff */ #include <linux/version.h> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) # include <linux/compiler.h> #endif +#endif #include <linux/ixjuser.h> #include "asterisk/lock.h"