[MPlayer-dev-eng] [PATCH] Fix IPv6 Support for TCP Streams

Alexander Strasser eclipse7 at gmx.net
Sat Jul 13 12:03:48 CEST 2013


Hi Erik,

On 2013-07-06 22:17 +0200, Erik Auerswald wrote:
> attached patch fixes IPv6 support for TCP streams.
> 
> It enables detection of gethostbyname2() on GNU/Linux and MPlayer
> correctly resolves IPv6 addresses when trying to connect to web
> stream.
> 
> I have successfully tested accessing and playing an MP3 file from a
> web server via IPv6.

  this works for me and is analog to how strsep was handled in 11b73048 .

  There is another problem that is "fixed" by this patch but actually
is something completely different. I will work on that, but please
ping me if I do forget about this unrelated problem. It should be
fixed really...

  Back to this problem: I intent to push your patch tomorrow evening!


  Alexander

[...]

> Index: configure
> ===================================================================
> --- configure	(revision 36353)
> +++ configure	(working copy)
> @@ -3598,6 +3598,7 @@
>  echocheck "gethostbyname2"
>  if test "$_gethostbyname2" = auto ; then
>  cat > $TMPC << EOF
> +#define _BSD_SOURCE
>  #include <sys/types.h>
>  #include <sys/socket.h>
>  #include <netdb.h>
> Index: stream/tcp.c
> ===================================================================
> --- stream/tcp.c	(revision 36353)
> +++ stream/tcp.c	(working copy)
> @@ -20,6 +20,8 @@
>   * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
>   */
>  
> +#define _BSD_SOURCE
> +
>  #include <stdlib.h>
>  #include <string.h>
>  #include <unistd.h>


More information about the MPlayer-dev-eng mailing list