]> git.sesse.net Git - ffmpeg/commitdiff
lavf/os_support: Only compile inet_aton() if getaddrinfo() is needed.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 15 Apr 2018 23:28:47 +0000 (01:28 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 23 Apr 2018 11:39:29 +0000 (13:39 +0200)
Silences a warning:
libavformat/os_support.c:49:12: warning: 'inet_aton' defined but not used

Reported-by: Reino Wijnsma
libavformat/os_support.c

index 099d7b501f4393e7ca63259ed15f2fe998396d9a..15cea7fa5b0d75cf847751a604dde42fe84bd4bd 100644 (file)
@@ -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)
 {