From 5bb60d9dc45cddb7fe6e12990fad94c6514ee1b0 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Fri, 8 Jun 2012 17:56:48 +0200 Subject: [PATCH] move windows compat errno constants to after is included --- lib/roken/roken.h.in | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index f3efb6b9d..d46af44de 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -99,26 +99,6 @@ typedef int rk_socket_t; #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 #define IN_LOOPBACKNET 127 #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); #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 #include #endif