summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2013-10-21 07:04:38 +0000
committerLiong Sauw Ming <ming@teluu.com>2013-10-21 07:04:38 +0000
commite73fa43ddc218df61819408dddc46752655257b2 (patch)
tree04bd477f1e63b3cfb8fd3df28e0973f9be71a048
parent2f4f5859f2b86bdef033181d6f67467c68fe87df (diff)
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
-rw-r--r--pjlib/include/pj/compat/os_darwinos.h9
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__ */