diff options
author | Martin Storsjö | 2010-01-11 17:42:35 +0000 |
---|---|---|
committer | Ronald S. Bultje | 2010-01-11 17:42:35 +0000 |
commit | 34a65f1fdd24c192dedc6638e909ceb7c58a2d18 (patch) | |
tree | 123fd5350589785ebfa257a3e934212198140947 /libavformat/network.h | |
parent | 33a4dbdd03d21b39afa2b9470b2180f733c18f99 (diff) |
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
Diffstat (limited to 'libavformat/network.h')
-rw-r--r-- | libavformat/network.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/network.h b/libavformat/network.h index 43c2544031..496cae8e4a 100644 --- a/libavformat/network.h +++ b/libavformat/network.h @@ -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; |