From e73fa43ddc218df61819408dddc46752655257b2 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Mon, 21 Oct 2013 07:04:38 +0000 Subject: Re #1630 (misc): Fixed os_darwinos.h (however, if PJ_AUTOCONF is defined, this file should not be used) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4626 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/compat/os_darwinos.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'pjlib') diff --git a/pjlib/include/pj/compat/os_darwinos.h b/pjlib/include/pj/compat/os_darwinos.h index 92b0b6ba..8cccd425 100644 --- a/pjlib/include/pj/compat/os_darwinos.h +++ b/pjlib/include/pj/compat/os_darwinos.h @@ -92,11 +92,6 @@ #define PJ_ATOMIC_VALUE_TYPE long -/* - * Socket related - */ -typedef int socklen_t; - /* Set 1 if native sockaddr_in has sin_len member. * Default: 0 */ @@ -137,8 +132,8 @@ typedef int socklen_t; */ #define PJ_THREAD_ALLOCATE_STACK 0 -/* Oh well.. MacOS 10.2 doesn't have socklen_t, but 10.4 has! */ -#define PJ_HAS_SOCKLEN_T 0 +/* MacOS has had socklen since 10.4 */ +#define PJ_HAS_SOCKLEN_T 1 #endif /* __PJ_COMPAT_OS_DARWINOS_H__ */ -- cgit v1.2.3