From f086c93150a5743a95a71779c4739c2b151aea2f Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Thu, 15 Jul 2010 13:32:11 +0000 Subject: Fixed #1104: Append ".local" to the system's hostname in IOS 4. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3238 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/compat/os_auto.h.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pjlib/include/pj/compat') diff --git a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in index 2b414650..35ccf0c3 100644 --- a/pjlib/include/pj/compat/os_auto.h.in +++ b/pjlib/include/pj/compat/os_auto.h.in @@ -169,6 +169,15 @@ /* The type of atomic variable value: */ #undef PJ_ATOMIC_VALUE_TYPE +/* Append ".local" suffix to the system's hostname? */ +#if defined(PJ_DARWINOS) && PJ_DARWINOS!=0 +# include "TargetConditionals.h" +# if defined(__IPHONE_4_0) && \ + __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0 +# define PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX 1 +# endif +#endif + /* If 1, use Read/Write mutex emulation for platforms that don't support it */ #undef PJ_EMULATE_RWMUTEX -- cgit v1.2.3