# HG changeset patch # User ramiro # Date 1204998190 0 # Node ID 7591b632d1c6a9f30c4e35fcfe8beff639f38112 # Parent 87d84e9dfeba4d54181f83e1b1f0eac74d6c1c11 Group network-related code together diff -r 87d84e9dfeba -r 7591b632d1c6 os_support.h --- a/os_support.h Sat Mar 08 14:39:43 2008 +0000 +++ b/os_support.h Sat Mar 08 17:43:10 2008 +0000 @@ -27,10 +27,6 @@ * miscellaneous OS support macros and functions. */ -#ifndef HAVE_SOCKLEN_T -typedef int socklen_t; -#endif - #ifdef __MINGW32__ __declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds); // # include @@ -56,6 +52,10 @@ # endif #endif +#ifndef HAVE_SOCKLEN_T +typedef int socklen_t; +#endif + /* most of the time closing a socket is just closing an fd */ #ifndef HAVE_CLOSESOCKET #define closesocket close