move windows compat errno constants to after <errno.h> is included
This commit is contained in:
@@ -99,26 +99,6 @@ typedef int rk_socket_t;
|
|||||||
|
|
||||||
#endif /* WinSock */
|
#endif /* WinSock */
|
||||||
|
|
||||||
/* Microsoft VC 2010 POSIX definitions */
|
|
||||||
#ifndef EAFNOSUPPORT
|
|
||||||
#define EAFNOSUPPORT 102
|
|
||||||
#endif
|
|
||||||
#ifndef ENOTSOCK
|
|
||||||
#define ENOTSOCK 128
|
|
||||||
#endif
|
|
||||||
#ifndef ENOTSUP
|
|
||||||
#define ENOTSUP 129
|
|
||||||
#endif
|
|
||||||
#ifndef EOVERFLOW
|
|
||||||
#define EOVERFLOW 132
|
|
||||||
#endif
|
|
||||||
#ifndef ETIMEDOUT
|
|
||||||
#define ETIMEDOUT 138
|
|
||||||
#endif
|
|
||||||
#ifndef EWOULDBLOCK
|
|
||||||
#define EWOULDBLOCK 140
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef IN_LOOPBACKNET
|
#ifndef IN_LOOPBACKNET
|
||||||
#define IN_LOOPBACKNET 127
|
#define IN_LOOPBACKNET 127
|
||||||
#endif
|
#endif
|
||||||
@@ -1161,6 +1141,27 @@ rk_qsort(void *, size_t, size_t, int (*)(const void *, const void *));
|
|||||||
int ROKEN_LIB_FUNCTION rk_socket(int, int, int);
|
int ROKEN_LIB_FUNCTION rk_socket(int, int, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Microsoft VC 2010 POSIX definitions */
|
||||||
|
#ifndef EAFNOSUPPORT
|
||||||
|
#define EAFNOSUPPORT 102
|
||||||
|
#endif
|
||||||
|
#ifndef ENOTSOCK
|
||||||
|
#define ENOTSOCK 128
|
||||||
|
#endif
|
||||||
|
#ifndef ENOTSUP
|
||||||
|
#define ENOTSUP 129
|
||||||
|
#endif
|
||||||
|
#ifndef EOVERFLOW
|
||||||
|
#define EOVERFLOW 132
|
||||||
|
#endif
|
||||||
|
#ifndef ETIMEDOUT
|
||||||
|
#define ETIMEDOUT 138
|
||||||
|
#endif
|
||||||
|
#ifndef EWOULDBLOCK
|
||||||
|
#define EWOULDBLOCK 140
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef SOCKET_WRAPPER_REPLACE
|
#ifdef SOCKET_WRAPPER_REPLACE
|
||||||
#include <socket_wrapper.h>
|
#include <socket_wrapper.h>
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user