From b5f420650add6f06c58d981685468761d74022cf Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 9 Sep 2006 20:05:33 +0000 Subject: Added PJ_HAS_SOCKLEN_T test in configure script (some MacOS X have it, some dont) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@697 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/compat/os_auto.h.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pjlib') diff --git a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in index e9e20068..403d8919 100644 --- a/pjlib/include/pj/compat/os_auto.h.in +++ b/pjlib/include/pj/compat/os_auto.h.in @@ -63,6 +63,13 @@ */ #undef PJ_SOCKADDR_HAS_LEN +/* Does the OS have socklen_t? */ +#undef PJ_HAS_SOCKLEN_T + +#if !defined(PJ_HAS_SOCKLEN_T) || PJ_HAS_SOCKLEN_T==0 + typedef int socklen_t; +#endif + /** * If this macro is set, it tells select I/O Queue that select() needs to * be given correct value of nfds (i.e. largest fd + 1). This requires @@ -99,13 +106,20 @@ # define PJ_HAS_THREADS (1) #endif +/* Do we need high resolution timer? */ #undef PJ_HAS_HIGH_RES_TIMER + +/* Is malloc() available? */ #undef PJ_HAS_MALLOC + #ifndef PJ_OS_HAS_CHECK_STACK # define PJ_OS_HAS_CHECK_STACK 0 #endif + +/* Unicode? */ #undef PJ_NATIVE_STRING_IS_UNICODE +/* The type of atomic variable value: */ #undef PJ_ATOMIC_VALUE_TYPE /* If 1, use Read/Write mutex emulation for platforms that don't support it */ -- cgit v1.2.3