 pjlib/include/pj/compat/os_auto.h.in | 40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)

diff --git a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in
index b37b1aef0..43957ff6e 100644
--- a/pjlib/include/pj/compat/os_auto.h.in
+++ b/pjlib/include/pj/compat/os_auto.h.in
@@ -1,4 +1,4 @@
-/*
+/*
  * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com)
  * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
  *
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 #ifndef __PJ_COMPAT_OS_AUTO_H__
 #define __PJ_COMPAT_OS_AUTO_H__
@@ -108,7 +108,7 @@
 /* Does pthread_mutexattr_t has "recursive" member?  */
 #undef PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE

-/* Set 1 if native sockaddr_in has sin_len member.
+/* Set 1 if native sockaddr_in has sin_len member.
  * Default: 0
  */
 #undef PJ_SOCKADDR_HAS_LEN
@@ -192,27 +192,31 @@

 #    include "TargetConditionals.h"
 #    if TARGET_OS_IPHONE
-#       include "Availability.h"
-        /* Use CFHost API for pj_getaddrinfo() (see ticket #1246) */
-#       ifndef PJ_GETADDRINFO_USE_CFHOST
-#           define PJ_GETADDRINFO_USE_CFHOST 0
-#       endif
-#       ifdef __IPHONE_4_0
-            /* Is multitasking support available?  (see ticket #1107) */
-#           define PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT        1
-            /* Activesock TCP background mode support (VoIP socket).
-             * Disabled by default, VoIP socket deprecated since iOS 9 and
-             * on iOS16 using VoIP socket causes app getting killed.
-             */
-#           define PJ_ACTIVESOCK_TCP_IPHONE_OS_BG               0
-#       endif
+#         include "Availability.h"
+          /* Use CFHost API for pj_getaddrinfo() (see ticket #1246) */
+#         ifndef PJ_GETADDRINFO_USE_CFHOST
+#             define PJ_GETADDRINFO_USE_CFHOST 0
+#         endif
+#         ifdef __IPHONE_4_0
+              /* Is multitasking support available?  (see ticket #1107) */
+#             define PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT        1
+              /* Activesock TCP background mode support (VoIP socket).
+               * Disabled by default, VoIP socket deprecated since iOS 9 and
+               * on iOS16 using VoIP socket causes app getting killed.
+               */
+#           ifdef __IPHONE_16_0
+#	          define PJ_ACTIVESOCK_TCP_IPHONE_OS_BG		0
+#           else
+#	          define PJ_ACTIVESOCK_TCP_IPHONE_OS_BG		1
+#	       endif
+#         endif
 #    endif
 #endif

 /* If 1, use Read/Write mutex emulation for platforms that don't support it */
 #undef PJ_EMULATE_RWMUTEX

-/* If 1, pj_thread_create() should enforce the stack size when creating
+/* If 1, pj_thread_create() should enforce the stack size when creating
  * threads.
  * Default: 0 (let OS decide the thread's stack size).
  */
