Merge pull request #1 from RangeNetworks/5.0

fix pjproject dep
This commit is contained in:
Michael Iedema 2014-12-08 16:04:40 +01:00
commit a11c290016
2 changed files with 11 additions and 0 deletions

View File

@ -37,5 +37,6 @@ sayAndDo tar zxf asterisk-$VERSION.tar.gz
sayAndDo mkdir asterisk-$VERSION/debian
sayAndDo cp -R debian/* asterisk-$VERSION/debian/
sayAndDo cd asterisk-$VERSION
sayAndDo patch -p0 < ../fix_pjproject_dependency.patch
sayAndDo dpkg-buildpackage -us -uc

View File

@ -0,0 +1,10 @@
--- res/res_rtp_asterisk.c.orig 2014-12-08 15:53:43.032358579 +0100
+++ res/res_rtp_asterisk.c 2014-12-08 15:54:15.524358525 +0100
@@ -47,6 +47,7 @@
#include <openssl/bio.h>
#endif
+#undef USE_PJPROJECT
#ifdef USE_PJPROJECT
/* Asterisk discourages the use of bzero in favor of memset, in fact if you try to use bzero it will tell you to use memset. As a result bzero has to be undefined
* here since it is used internally by pjlib. The only other option would be to modify pjlib... which won't happen. */