mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
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
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user