diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-09-09 20:05:33 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-09-09 20:05:33 +0000 |
commit | b5f420650add6f06c58d981685468761d74022cf (patch) | |
tree | 34d8e9af4c7a0abcd29cc98f69a770c439164840 /pjlib/include/pj/compat/os_auto.h.in | |
parent | 40cfcab19c02578df219e8ef2dd8a3c6d04b8799 (diff) |
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
Diffstat (limited to 'pjlib/include/pj/compat/os_auto.h.in')
-rw-r--r-- | pjlib/include/pj/compat/os_auto.h.in | 14 |
1 files changed, 14 insertions, 0 deletions
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 */ |