diff options
Diffstat (limited to 'pjlib/include/pj/compat/os_darwinos.h')
-rw-r--r-- | pjlib/include/pj/compat/os_darwinos.h | 9 |
1 files changed, 2 insertions, 7 deletions
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__ */ |