diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-01-02 14:05:30 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-01-02 14:05:30 +0000 |
commit | 04a10c145bb11d26960e78afda49c037216ff73d (patch) | |
tree | b7166e1e0969a7109403e9f88178ff8e12022b68 /main/translate.c | |
parent | c08a968cb4d2288af97b19068d941af447e51b54 (diff) |
go back to including libresample in the main Asterisk binary, but this time including a small hack to ensure that it does get linked in (and also modify the strip_nonapi script to leave the resample_<foo> symbols alone)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/translate.c')
-rw-r--r-- | main/translate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/translate.c b/main/translate.c index d9270e907..617e46552 100644 --- a/main/translate.c +++ b/main/translate.c @@ -39,8 +39,14 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/cli.h" #include "asterisk/term.h" +#include "libresample.h" + #define MAX_RECALC 1000 /* max sample recalc */ +/* hack to ensure that the libresample code gets linked in */ + +static attribute_unused void (*resample_hack)(void *) = resample_close; + /*! \brief the list of translators */ static AST_RWLIST_HEAD_STATIC(translators, ast_translator); |