summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-04-16 01:28:47 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-04-23 13:39:29 +0200
commit2442cf3615a1547abfcb24ea061b0f65dee7f0ea (patch)
tree356116aec6222b815095dd4135ae7358098f9eba /libavformat/os_support.c
parent153e92089207b1a634f6b5b7b1daf24386c2be23 (diff)
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
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c2
1 files changed, 1 insertions, 1 deletions
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)
{