diff os_support.h @ 6457:2e3e76e8ada4 libavformat

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>.
author rbultje
date Fri, 03 Sep 2010 19:25:59 +0000
parents 6780dc315f36
children e29a553aa1fc
line wrap: on
line diff
--- a/os_support.h	Fri Sep 03 14:59:18 2010 +0000
+++ b/os_support.h	Fri Sep 03 19:25:59 2010 +0000
@@ -55,6 +55,10 @@
 #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;