]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
SFSIP-220 VS2010 sofia posix problem
authorJeff Lenk <jeff@jefflenk.com>
Sun, 22 Aug 2010 03:39:01 +0000 (22:39 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Sun, 22 Aug 2010 03:39:01 +0000 (22:39 -0500)
libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/su_errno.h

index 9faafa71314c04508f7e21f8906c459320867020..c11570c4eb382dcd88298a6659577035b2926cf8 100644 (file)
@@ -71,6 +71,46 @@ SOFIAPUBFUN int su_seterrno(int);
 #endif
 
 #if defined(_WIN32)
+/* VS 2010 defines these for POSIX but we cant have that */
+#if (_MSC_VER > 1500)\r
+#undef EWOULDBLOCK
+#undef EINPROGRESS
+#undef EALREADY
+#undef ENOTSOCK
+#undef EDESTADDRREQ
+#undef EMSGSIZE
+#undef EPROTOTYPE
+#undef ENOPROTOOPT
+#undef EPROTONOSUPPORT
+#undef ESOCKTNOSUPPORT
+#undef EOPNOTSUPP
+#undef EPFNOSUPPORT
+#undef EAFNOSUPPORT
+#undef EADDRINUSE
+#undef EADDRNOTAVAIL
+#undef ENETDOWN
+#undef ENETUNREACH
+#undef ENETRESET
+#undef ECONNABORTED
+#undef ECONNRESET
+#undef ENOBUFS
+#undef EISCONN
+#undef ENOTCONN
+#undef ESHUTDOWN
+#undef ETOOMANYREFS
+#undef ETIMEDOUT
+#undef ECONNREFUSED
+#undef ELOOP
+#undef EHOSTDOWN
+#undef EHOSTUNREACH
+#undef EPROCLIM
+#undef EUSERS
+#undef EDQUOT
+#undef ESTALE
+#undef EREMOTE
+#undef EBADMSG
+#undef EPROTO
+#endif
 
 #ifndef EWOULDBLOCK
 #define EWOULDBLOCK  (10035) /* WSAEWOULDBLOCK */