summaryrefslogtreecommitdiff
path: root/libavformat/os_support.h
diff options
context:
space:
mode:
authorJohn Wimer <john@god.vtic.net>2010-09-03 19:25:59 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-09-03 19:25:59 +0000
commit619298a84dcad59e42062a00b8ffe422a1a38d7c (patch)
tree7174f30ee1300d019672e600051ce39beca7cf05 /libavformat/os_support.h
parent2c166c3af15a2333090075608590e1229dcce552 (diff)
Send NAT punching messages to the address specified in the Transport:
message, if available (RFC 2326, section 12.39), fixes issue 2212. Patch by John Wimer <john at god vtic net>. Originally committed as revision 25032 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 5c9e81b340..1330d3dc04 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -55,6 +55,10 @@ 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;