1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Implement a fallback for struct sockaddr_storage if not available.

Patch by Martin Storsjö <$firstname()$firstname,st>.

Originally committed as revision 21149 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Martin Storsjö 2010-01-11 17:42:35 +00:00 committed by Ronald S. Bultje
parent 33a4dbdd03
commit 34a65f1fdd

View File

@ -68,6 +68,12 @@ static inline void ff_network_close(void)
int inet_aton (const char * str, struct in_addr * add); int inet_aton (const char * str, struct in_addr * add);
#endif #endif
#if !HAVE_STRUCT_SOCKADDR_STORAGE
struct sockaddr_storage {
struct sockaddr_in x;
};
#endif
#if !HAVE_STRUCT_ADDRINFO #if !HAVE_STRUCT_ADDRINFO
struct addrinfo { struct addrinfo {
int ai_flags; int ai_flags;