SLIRP: Fix Coverity changes
This commit is contained in:
parent
71abd2896c
commit
06d78600b3
2 changed files with 5 additions and 2 deletions
|
@ -90,8 +90,10 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
#define WSAEACCES EACCES
|
#define WSAEACCES EACCES
|
||||||
#define WSAEINTR EINTR
|
#define WSAEINTR EINTR
|
||||||
#define INVALID_SOCKET ((SOCKET)-1)
|
#define INVALID_SOCKET ((SOCKET)-1)
|
||||||
#define SOCKET_ERROR -1
|
#if !defined(SOCKET_ERROR)
|
||||||
|
#define SOCKET_ERROR (-1)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (VMS) /* VMS unique */
|
#if defined (VMS) /* VMS unique */
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#else
|
#else
|
||||||
typedef int SOCKET;
|
typedef int SOCKET;
|
||||||
|
#define SOCKET_ERROR (-1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
|
|
Loading…
Add table
Reference in a new issue