Skip to content
Snippets Groups Projects
Commit 3c1804eb authored by Richard Mudgett's avatar Richard Mudgett
Browse files

format_mp3: Made the get script conditionally apply patch if not already there.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@424039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e0abb82a
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,10 @@ fi
svn export http://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@
# Manually patch interface.c.
sed -i -e '/#include "asterisk.h"/i#define WRAP_LIBC_MALLOC' \
addons/mp3/interface.c
# Manually patch interface.c if not done yet.
if ! grep -q WRAP_LIBC_MALLOC addons/mp3/interface.c; then
sed -i -e '/#include "asterisk.h"/i#define WRAP_LIBC_MALLOC' \
addons/mp3/interface.c
fi
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment