mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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
This commit is contained in:
@@ -17,8 +17,10 @@ fi
|
|||||||
|
|
||||||
svn export http://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@
|
svn export http://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@
|
||||||
|
|
||||||
# Manually patch interface.c.
|
# Manually patch interface.c if not done yet.
|
||||||
sed -i -e '/#include "asterisk.h"/i#define WRAP_LIBC_MALLOC' \
|
if ! grep -q WRAP_LIBC_MALLOC addons/mp3/interface.c; then
|
||||||
addons/mp3/interface.c
|
sed -i -e '/#include "asterisk.h"/i#define WRAP_LIBC_MALLOC' \
|
||||||
|
addons/mp3/interface.c
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user