BUg 799076: Add temporary error definitions to media/webrtc/signaling for VC9 and below r=derf
authorRandell Jesup <rjesup@jesup.org>
Mon, 08 Oct 2012 11:08:52 -0400
changeset 109676 4c95b705edb00362830b235103edb1bd95ab57e4
parent 109675 129e65729274321766644127fc7c50063131a1f9
child 109677 87f3548e638eb6db3f94999c5dbff353830dcb4c
push idunknown
push userunknown
push dateunknown
reviewersderf
bugs799076
milestone18.0a1
BUg 799076: Add temporary error definitions to media/webrtc/signaling for VC9 and below r=derf
media/webrtc/signaling/src/sipcc/cpr/win32/cpr_win_errno.h
--- a/media/webrtc/signaling/src/sipcc/cpr/win32/cpr_win_errno.h
+++ b/media/webrtc/signaling/src/sipcc/cpr/win32/cpr_win_errno.h
@@ -37,16 +37,27 @@
  *
  * ***** END LICENSE BLOCK ***** */
 
 #ifndef _CPR_CNU_ERRNO_H_
 #define _CPR_CNU_ERRNO_H_
 
 #include <errno.h>
 
+/* VC10 and above define these */
+#ifndef EWOULDBLOCK
+#define EWOULDBLOCK             WSAEWOULDBLOCK
+#endif
+#ifndef EINPROGRESS
+#define EINPROGRESS             WSAEINPROGRESS
+#endif
+#ifndef ENOTCONN
+#define ENOTCONN                WSAENOTCONN
+#endif
+
 /*
  * Maintain re-entrant nature by wrapping 'errno'
  */
 #define cpr_errno cprTranslateErrno()
 
 int16_t cprTranslateErrno(void);
 
 #endif