summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-07-19 18:05:04 +0000
committerBenny Prijono <bennylp@teluu.com>2008-07-19 18:05:04 +0000
commit68af3b3427320b3c63d1662f599a203104dd6b83 (patch)
tree8a0fb0f98aa804eb561a588444694d858c28b061
parent2f89f6ad8e113cb108795d7ef2b6d81eb92c9a2a (diff)
Fixed build error with some Mingw configuration related to socklen_t
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2160 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjlib/include/pj/compat/os_auto.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in
index 6ce05d43..c963179d 100644
--- a/pjlib/include/pj/compat/os_auto.h.in
+++ b/pjlib/include/pj/compat/os_auto.h.in
@@ -103,7 +103,7 @@
/* Does the OS have socklen_t? */
#undef PJ_HAS_SOCKLEN_T
-#if !defined(PJ_HAS_SOCKLEN_T) || PJ_HAS_SOCKLEN_T==0
+#if !defined(socklen_t) && (!defined(PJ_HAS_SOCKLEN_T) || PJ_HAS_SOCKLEN_T==0)
# define PJ_HAS_SOCKLEN_T 1
typedef int socklen_t;
#endif