Use some Makefile magic to determine if linux/compiler.h is present. (issue #10174 reported by francesco_r)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@74587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Joshua Colp 18 years ago
parent 01412290a2
commit 7055d9fe45

@ -79,6 +79,10 @@ ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/ixjuser.h)$(wildcard
CHANNEL_LIBS+=chan_phone.so CHANNEL_LIBS+=chan_phone.so
endif endif
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/compiler.h),)
CFLAGS+=-DHAVE_LINUX_COMPILER_H
endif
ifneq ($(wildcard h323/libchanh323.a),) ifneq ($(wildcard h323/libchanh323.a),)
CHANNEL_LIBS+=chan_h323.so CHANNEL_LIBS+=chan_h323.so
endif endif

@ -34,6 +34,9 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef HAVE_LINUX_COMPILER_H
#include <linux/compiler.h>
#endif
#include <linux/telephony.h> #include <linux/telephony.h>
/* Still use some IXJ specific stuff */ /* Still use some IXJ specific stuff */
#include <linux/version.h> #include <linux/version.h>

Loading…
Cancel
Save