From 5edcbe5108e722951f3dc1f6453a33d25184973c Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Mon, 14 Nov 2016 03:23:51 +0000 Subject: Re #1945 (misc): Disable local host resolution (PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION) for macOS as well (instead of for iOS only). Please refer to #1342 for more details. Thanks to Jeff Anderson for the report and the fix. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5480 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/compat/os_auto.h.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in index 70018ba6..0cf14968 100644 --- a/pjlib/include/pj/compat/os_auto.h.in +++ b/pjlib/include/pj/compat/os_auto.h.in @@ -179,13 +179,14 @@ #undef PJ_ATOMIC_VALUE_TYPE #if defined(PJ_DARWINOS) && PJ_DARWINOS!=0 + /* Disable local host resolution in pj_gethostip() (see ticket #1342) */ +# define PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION 1 + # include "TargetConditionals.h" # if TARGET_OS_IPHONE # include "Availability.h" /* Use CFHost API for pj_getaddrinfo() (see ticket #1246) */ # define PJ_GETADDRINFO_USE_CFHOST 1 - /* Disable local host resolution in pj_gethostip() (see ticket #1342) */ -# define PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION 1 # ifdef __IPHONE_4_0 /* Is multitasking support available? (see ticket #1107) */ # define PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT 1 -- cgit v1.2.3