On Jan 11, 2008 4:01 PM, Michael Jerris <[EMAIL PROTECTED]> wrote:
>
Hi Mike, are you sure this fix is enough? the _WIN32_WINNT is defined
to at least 0x501 so it enters that branch and does not complain about
the missing headers from the 'else' branch, but i am not certain it
would work with ipv6 (i dont use it so i cannot check) since the
IPPROTO_IPV6 macro is defined within an enum in w2defs.h so
IPPROTO_IPV6 is still not defined (but i don't know if it is still
needed)
>
>  My fix for this one is:
>
> Index: sofia-sip/su.h
> ===================================================================
> --- sofia-sip/su.h      (revision 6643)
> +++ sofia-sip/su.h      (revision 6644)
> @@ -67,7 +67,7 @@
>  #  include <winsock2.h>
>  #  include <ws2tcpip.h>
>  #  if SU_HAVE_IN6
> -#    if defined(IPPROTO_IPV6)
> +#    if defined(IPPROTO_IPV6) || (_WIN32_WINNT >= 0x0600)
>  /*     case 1: IPv6 defined in winsock2.h/ws2tcpip.h */
>  #    else
>  /*     case 2: try to use "IPv6 Tech Preview" */
>
> it should not require additional includes beyond this.
>
> Mike

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to