changeset 5519:9faa86343583 libavformat

Implement a fallback for struct sockaddr_storage if not available. Patch by Martin Storsj <$firstname()$firstname,st>.
author rbultje
date Mon, 11 Jan 2010 17:42:35 +0000
parents 0dc71c7f6653
children 8797851aeedb
files network.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/network.h	Mon Jan 11 17:32:40 2010 +0000
+++ b/network.h	Mon Jan 11 17:42:35 2010 +0000
@@ -68,6 +68,12 @@
 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;