aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/network.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-02-08 18:48:12 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-02-08 18:48:12 +0000
commit04a2b04b9841b8b9e3726c522829a8da38f4ad8d (patch)
tree4ea35a1a0363a7d142f000001188b2c79b3f1b4f /libavformat/network.h
parent1be49ce54b7ce9ffe8ce514d7c05df6a88f31261 (diff)
downloadffmpeg-04a2b04b9841b8b9e3726c522829a8da38f4ad8d.tar.gz
Implement gai_strerror() for systems lacking such functionality. Patch
by KO Myung-Hun <komh challion net>. Originally committed as revision 21692 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/network.h')
-rw-r--r--libavformat/network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/network.h b/libavformat/network.h
index 6e82f81ca8..796d44ae5f 100644
--- a/libavformat/network.h
+++ b/libavformat/network.h
@@ -147,9 +147,11 @@ void ff_freeaddrinfo(struct addrinfo *res);
int ff_getnameinfo(const struct sockaddr *sa, int salen,
char *host, int hostlen,
char *serv, int servlen, int flags);
+const char *ff_gai_strerror(int ecode);
#define getaddrinfo ff_getaddrinfo
#define freeaddrinfo ff_freeaddrinfo
#define getnameinfo ff_getnameinfo
+#define gai_strerror ff_gai_strerror
#endif
#endif /* AVFORMAT_NETWORK_H */