diff options
Diffstat (limited to 'channels')
-rw-r--r-- | channels/Makefile | 4 | ||||
-rw-r--r-- | channels/chan_phone.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/channels/Makefile b/channels/Makefile index 3a277fe27..6edbbd620 100644 --- a/channels/Makefile +++ b/channels/Makefile @@ -79,6 +79,10 @@ ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/ixjuser.h)$(wildcard CHANNEL_LIBS+=chan_phone.so endif +ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/compiler.h),) + CFLAGS+=-DHAVE_LINUX_COMPILER_H +endif + ifneq ($(wildcard h323/libchanh323.a),) CHANNEL_LIBS+=chan_h323.so endif diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 669e87507..54cadc208 100644 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -34,6 +34,9 @@ #include <arpa/inet.h> #include <fcntl.h> #include <sys/ioctl.h> +#ifdef HAVE_LINUX_COMPILER_H +#include <linux/compiler.h> +#endif #include <linux/telephony.h> /* Still use some IXJ specific stuff */ #include <linux/version.h> |