summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/compat/os_linux.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-09-14 11:26:37 +0000
committerBenny Prijono <bennylp@teluu.com>2006-09-14 11:26:37 +0000
commit375ad034fbb45b861bcb967a120c23189d30040c (patch)
tree6894971014134d0dc674e28b75e436fa7ceda835 /pjlib/include/pj/compat/os_linux.h
parentde41ab8738b3c8782e214d48f562d1671dc76691 (diff)
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: http://svn.pjsip.org/repos/pjproject/trunk@716 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/compat/os_linux.h')
-rw-r--r--pjlib/include/pj/compat/os_linux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pjlib/include/pj/compat/os_linux.h b/pjlib/include/pj/compat/os_linux.h
index f0bef355..cd5acaf8 100644
--- a/pjlib/include/pj/compat/os_linux.h
+++ b/pjlib/include/pj/compat/os_linux.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__ */