From a38fc196bde56139b52bb4ddf0c3347356adec87 Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Tue, 24 Jun 2003 11:26:32 +0000 Subject: [PATCH] * src/stream_output/announce.c: inet_pton() isn't supported on win32 so disabled ipv6 sap announces on win32. Wouldn't it be possible to use send() instead of sendto() ? That would simplify the code and get rid of this problem. --- src/stream_output/announce.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stream_output/announce.c b/src/stream_output/announce.c index 7c8086432c..395c0a2dce 100644 --- a/src/stream_output/announce.c +++ b/src/stream_output/announce.c @@ -141,7 +141,9 @@ sap_session_t * sout_SAPNew ( sout_instance_t *p_sout , return NULL; } +#ifndef WIN32 i_status = inet_pton(AF_INET6,sap_ipv6_addr,net_ipv6_addr); +#endif if(i_status < 0 ) { msg_Warn(p_sout,"Unable to convert address to network format"); -- 2.39.2