diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 26141fe620..ee095c75e7 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -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 @@ __declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds); # 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