Mercurial > libavformat.hg
comparison network.h @ 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 | afe4a96b6832 |
children | 8797851aeedb |
comparison
equal
deleted
inserted
replaced
5518:0dc71c7f6653 | 5519:9faa86343583 |
---|---|
66 #if !HAVE_INET_ATON | 66 #if !HAVE_INET_ATON |
67 /* in os_support.c */ | 67 /* in os_support.c */ |
68 int inet_aton (const char * str, struct in_addr * add); | 68 int inet_aton (const char * str, struct in_addr * add); |
69 #endif | 69 #endif |
70 | 70 |
71 #if !HAVE_STRUCT_SOCKADDR_STORAGE | |
72 struct sockaddr_storage { | |
73 struct sockaddr_in x; | |
74 }; | |
75 #endif | |
76 | |
71 #if !HAVE_STRUCT_ADDRINFO | 77 #if !HAVE_STRUCT_ADDRINFO |
72 struct addrinfo { | 78 struct addrinfo { |
73 int ai_flags; | 79 int ai_flags; |
74 int ai_family; | 80 int ai_family; |
75 int ai_socktype; | 81 int ai_socktype; |