mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Group network-related code together
Originally committed as revision 12371 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8d06bd53f8
commit
591cf1170b
@ -27,10 +27,6 @@
|
|||||||
* miscellaneous OS support macros and functions.
|
* miscellaneous OS support macros and functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HAVE_SOCKLEN_T
|
|
||||||
typedef int socklen_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
__declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds);
|
__declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds);
|
||||||
// # include <windows.h>
|
// # include <windows.h>
|
||||||
@ -56,6 +52,10 @@ __declspec(dllimport) void WINAPI Sleep(unsigned long dwMilliseconds);
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_SOCKLEN_T
|
||||||
|
typedef int socklen_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* most of the time closing a socket is just closing an fd */
|
/* most of the time closing a socket is just closing an fd */
|
||||||
#ifndef HAVE_CLOSESOCKET
|
#ifndef HAVE_CLOSESOCKET
|
||||||
#define closesocket close
|
#define closesocket close
|
||||||
|
Loading…
x
Reference in New Issue
Block a user