summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/compat/socket.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-09-10 16:33:48 +0000
committerBenny Prijono <bennylp@teluu.com>2006-09-10 16:33:48 +0000
commit059856aee28d01b0a28ee86b6fb6efc2060229c2 (patch)
tree889ff00b1fc97157ebb945b3101bc046f02c2f28 /pjlib/include/pj/compat/socket.h
parent49ff9b1d0c7c4ffb20e8b92bd6f42549034eeceb (diff)
Fixed autoconf in mingw
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@699 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/compat/socket.h')
-rw-r--r--pjlib/include/pj/compat/socket.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/pjlib/include/pj/compat/socket.h b/pjlib/include/pj/compat/socket.h
index a3715e7d..e95bc125 100644
--- a/pjlib/include/pj/compat/socket.h
+++ b/pjlib/include/pj/compat/socket.h
@@ -24,14 +24,14 @@
* @brief Provides all socket related functions,data types, error codes, etc.
*/
-#if defined(PJ_HAS_WINSOCK_H) && PJ_HAS_WINSOCK_H != 0
-# include <winsock.h>
-#endif
-
#if defined(PJ_HAS_WINSOCK2_H) && PJ_HAS_WINSOCK2_H != 0
# include <winsock2.h>
#endif
+#if defined(PJ_HAS_WINSOCK_H) && PJ_HAS_WINSOCK_H != 0
+# include <winsock.h>
+#endif
+
#if defined(PJ_HAS_SYS_TYPES_H) && PJ_HAS_SYS_TYPES_H != 0
# include <sys/types.h>
#endif
@@ -124,9 +124,10 @@
/*
- * Windows specific
+ * This will finally be obsoleted, since it should be declared in
+ * os_auto.h
*/
-#if defined(PJ_WIN32) || defined(PJ_WIN32_WINCE)
+#if !defined(PJ_HAS_SOCKLEN_T) || PJ_HAS_SOCKLEN_T==0
typedef int socklen_t;
#endif