[FFmpeg-cvslog] r21149 - trunk/libavformat/network.h

rbultje subversion
Mon Jan 11 18:42:35 CET 2010


Author: rbultje
Date: Mon Jan 11 18:42:35 2010
New Revision: 21149

Log:
Implement a fallback for struct sockaddr_storage if not available.
Patch by Martin Storsj? <$firstname()$firstname,st>.

Modified:
   trunk/libavformat/network.h

Modified: trunk/libavformat/network.h
==============================================================================
--- trunk/libavformat/network.h	Mon Jan 11 18:42:15 2010	(r21148)
+++ trunk/libavformat/network.h	Mon Jan 11 18:42:35 2010	(r21149)
@@ -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;



More information about the ffmpeg-cvslog mailing list