Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/network.h4
-rw-r--r--libavformat/os_support.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/network.h b/libavformat/network.h
index 0fbcbbb227..d1f3d29455 100644
--- a/libavformat/network.h
+++ b/libavformat/network.h
@@ -151,4 +151,8 @@ const char *ff_gai_strerror(int ecode);
#define gai_strerror ff_gai_strerror
#endif
+#ifndef INET6_ADDRSTRLEN
+#define INET6_ADDRSTRLEN INET_ADDRSTRLEN
+#endif
+
#endif /* AVFORMAT_NETWORK_H */
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 1330d3dc04..5c9e81b340 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -55,10 +55,6 @@ typedef int socklen_t;
#define closesocket close
#endif
-#ifndef INET6_ADDRSTRLEN
-#define INET6_ADDRSTRLEN INET_ADDRSTRLEN
-#endif
-
#if CONFIG_FFSERVER
#if !HAVE_POLL_H
typedef unsigned long nfds_t;