From 887103e83b48a77ff9ce34b5ae95b0cd3948269c Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" <kpfleming@digium.com> Date: Wed, 2 Jan 2008 18:21:04 +0000 Subject: [PATCH] and now just to keep the libresample party going... if the functions from libresample are going to be in the main Asterisk binary, it makes sense for the header that defines them to be available without any special CFLAGS and to out-of-tree modules building against /usr/include/asterisk git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95894 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- codecs/Makefile | 2 -- codecs/codec_resample.c | 3 +-- include/asterisk/libresample.h | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) create mode 120000 include/asterisk/libresample.h diff --git a/codecs/Makefile b/codecs/Makefile index a09f67149e..d96e7cf57d 100644 --- a/codecs/Makefile +++ b/codecs/Makefile @@ -54,5 +54,3 @@ $(LIBG722): @$(MAKE) -C g722 all $(if $(filter codec_g722,$(EMBEDDED_MODS)),modules.link,codec_g722.so): $(LIBG722) - -codec_resample.o: ASTCFLAGS+=-I$(ASTTOPDIR)/main/libresample/include diff --git a/codecs/codec_resample.c b/codecs/codec_resample.c index 66d60169d9..76641ce50d 100644 --- a/codecs/codec_resample.c +++ b/codecs/codec_resample.c @@ -39,8 +39,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/module.h" #include "asterisk/translate.h" - -#include "libresample.h" +#include "asterisk/libresample.h" #include "slin_resample_ex.h" diff --git a/include/asterisk/libresample.h b/include/asterisk/libresample.h new file mode 120000 index 0000000000..d71269da11 --- /dev/null +++ b/include/asterisk/libresample.h @@ -0,0 +1 @@ +../../main/libresample/include/libresample.h \ No newline at end of file -- GitLab