[FFmpeg-devel] [PATCH] Enable proper IPv6 functions on windows

Ramiro Polla ramiro.polla
Fri Jan 15 22:46:26 CET 2010

2010/1/15 M?ns Rullg?rd <mans at mansr.com>:
> Ramiro Polla <ramiro.polla at gmail.com> writes:
>> On Fri, Jan 15, 2010 at 7:23 PM, Martin Storsj? <martin at martin.st> wrote:
>>> On Fri, 15 Jan 2010, Ramiro Polla wrote:
>>>> > so instead of just killing win9x, now you've killed win2k too?
>>>> >
>>>> > cant we have both?
>>>> >
>>>> > if WINNT=0x0501 then use xp stuff
>>>> > else if WINNT=0x0500 use win9x/2k stuff
>>>> >
>>>> > do the win2k users outnumber the ipv6 users?
>>>> From what I understand win2k will still work with --disable-network
>>>> (like in the documentation).
>>>> Martin, would it be possible and not too ugly to #ifdef out the code
>>>> that needs winxp so the current network support would still be
>>>> possible with some configure option?
>>> Well, as the next step, I intended to send a patch adding
>>> ? ?check_func_headers ws2tcpip.h getaddrinfo $network_extralibs
>>> to the winsock part of the network section in configure. The point being
>>> that if _WIN32_WINNT=0x0501 is set, the check will succeed and we will
>>> link to the >= winxp getaddrinfo function, otherwise we'll set
>>> HAVE_GETADDRINFO to 0 and use our fallback wrapper instead.
>>> So if we want pre-XP compatibility configurable, we would only add
>>> _WIN32_WINNT=0x0501 in that particular case - as in your initial win9x
>>> patch. So, your initial approach, but perhaps renaming the mingw32-win9x
>>> target os name into mingw32-win2k or something similar (mingw32-prexp?).
>> Good idea. Patch attached.
> I prefer calling it mingw32-win2k, but I don't really care. ?I won't
> be using it anyway.

More information about the ffmpeg-devel mailing list