Fixed compilation error in Linux when the legacy configure is being used: multiple declaration of socklen_t. Also does similar things with os_sunos, os_darwinos, and os_rtems
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@716 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
804ff0aa0c
commit
893628d18b
|
@ -135,6 +135,9 @@ 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
|
||||
|
||||
|
||||
#endif /* __PJ_COMPAT_OS_DARWINOS_H__ */
|
||||
|
||||
|
|
|
@ -119,6 +119,8 @@
|
|||
*/
|
||||
#define PJ_THREAD_ALLOCATE_STACK 0
|
||||
|
||||
/* Linux has socklen_t */
|
||||
#define PJ_HAS_SOCKLEN_T 1
|
||||
|
||||
|
||||
#endif /* __PJ_COMPAT_OS_LINUX_H__ */
|
||||
|
|
|
@ -128,6 +128,9 @@ typedef int socklen_t;
|
|||
*/
|
||||
#define PJ_THREAD_ALLOCATE_STACK 1
|
||||
|
||||
/* RTEMS has socklen_t (does it? )*/
|
||||
#define PJ_HAS_SOCKLEN_T 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -122,6 +122,9 @@
|
|||
*/
|
||||
#define PJ_THREAD_ALLOCATE_STACK 0
|
||||
|
||||
/* SunOS has socklen_t (does it? )*/
|
||||
#define PJ_HAS_SOCKLEN_T 1
|
||||
|
||||
|
||||
|
||||
#endif /* __PJ_COMPAT_OS_SUNOS_H__ */
|
||||
|
|
Loading…
Reference in New Issue