ffmpeg | branch: master | Carl Eugen Hoyos <ceffm...@gmail.com> | Mon Apr 16 01:28:47 2018 +0200| [2442cf3615a1547abfcb24ea061b0f65dee7f0ea] | committer: Carl Eugen Hoyos
lavf/os_support: Only compile inet_aton() if getaddrinfo() is needed. Silences a warning: libavformat/os_support.c:49:12: warning: 'inet_aton' defined but not used Reported-by: Reino Wijnsma > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2442cf3615a1547abfcb24ea061b0f65dee7f0ea --- libavformat/os_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/os_support.c b/libavformat/os_support.c index 099d7b501f..15cea7fa5b 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -43,6 +43,7 @@ #include "network.h" +#if !HAVE_GETADDRINFO #if !HAVE_INET_ATON #include <stdlib.h> @@ -62,7 +63,6 @@ static int inet_aton(const char *str, struct in_addr *add) } #endif /* !HAVE_INET_ATON */ -#if !HAVE_GETADDRINFO int ff_getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res) { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog