diff options
author | Liong Sauw Ming <ming@teluu.com> | 2016-11-14 03:23:51 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2016-11-14 03:23:51 +0000 |
commit | 5edcbe5108e722951f3dc1f6453a33d25184973c (patch) | |
tree | 844dabbd0de1c08790cd525ae150cd8bb6e2ea09 | |
parent | 2477680edbe9c035befb4dfe3615723de1aee05e (diff) |
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
-rw-r--r-- | pjlib/include/pj/compat/os_auto.h.in | 5 |
1 files 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 |