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:
parent
33a4dbdd03
commit
34a65f1fdd
@ -68,6 +68,12 @@ static inline void ff_network_close(void)
|
||||
int inet_aton (const char * str, struct in_addr * add);
|
||||
#endif
|
||||
|
||||
#if !HAVE_STRUCT_SOCKADDR_STORAGE
|
||||
struct sockaddr_storage {
|
||||
struct sockaddr_in x;
|
||||
};
|
||||
#endif
|
||||
|
||||
#if !HAVE_STRUCT_ADDRINFO
|
||||
struct addrinfo {
|
||||
int ai_flags;
|
||||
|
Loading…
Reference in New Issue
Block a user