From 34a65f1fdd24c192dedc6638e909ceb7c58a2d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 11 Jan 2010 17:42:35 +0000 Subject: [PATCH] =?UTF-8?q?Implement=20a=20fallback=20for=20struct=20socka?= =?UTF-8?q?ddr=5Fstorage=20if=20not=20available.=20Patch=20by=20Martin=20S?= =?UTF-8?q?torsj=C3=B6=20<$firstname()$firstname,st>.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 21149 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/network.h | 6 ++++++ 1 file changed, 6 insertions(+) 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;