mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 14:27:14 +00:00
bundled_pjproject: Make it easier to hack
There are times when you need to troubleshoot issues with bundled pjproject or add new features that need to be pushed upstream but... * The source directory created by extracting the pjproject tarball is not scanned for code changes so you have to keep forcing rebuilds. * The source directory isn't a git repo so you can't easily create patches, do git bisects, etc. * Accidentally doing a make distclean will ruin your day by wiping out the source directory, and your changes. * etc. This commit makes that easier. See third-party/pjproject/README-hacking.md for the details. ASTERISK-29824 Change-Id: Idb1251040affdab31d27cd272dda68676da9b268
This commit is contained in:
@@ -489,7 +489,7 @@ int ast_sockaddr_to_pj_sockaddr(const struct ast_sockaddr *addr, pj_sockaddr *pj
|
||||
if (addr->ss.ss_family == AF_INET) {
|
||||
struct sockaddr_in *sin = (struct sockaddr_in *) &addr->ss;
|
||||
pjaddr->ipv4.sin_family = pj_AF_INET();
|
||||
#ifdef HAVE_PJPROJECT_BUNDLED
|
||||
#if defined(HAVE_PJPROJECT_BUNDLED) && !defined(HAVE_PJPROJECT_BUNDLED_OOT)
|
||||
pjaddr->ipv4.sin_addr = sin->sin_addr;
|
||||
#else
|
||||
pjaddr->ipv4.sin_addr.s_addr = sin->sin_addr.s_addr;
|
||||
@@ -514,7 +514,7 @@ int ast_sockaddr_from_pj_sockaddr(struct ast_sockaddr *addr, const pj_sockaddr *
|
||||
if (pjaddr->addr.sa_family == pj_AF_INET()) {
|
||||
struct sockaddr_in *sin = (struct sockaddr_in *) &addr->ss;
|
||||
sin->sin_family = AF_INET;
|
||||
#ifdef HAVE_PJPROJECT_BUNDLED
|
||||
#if defined(HAVE_PJPROJECT_BUNDLED) && !defined(HAVE_PJPROJECT_BUNDLED_OOT)
|
||||
sin->sin_addr = pjaddr->ipv4.sin_addr;
|
||||
#else
|
||||
sin->sin_addr.s_addr = pjaddr->ipv4.sin_addr.s_addr;
|
||||
|
||||
Reference in New Issue
Block a user