Hi,
I have made a patch to make UFO 2.2 work under win2K (and possibly previous windows). (I have used the code that mattn started to write for net.c). Could you integrate it in SVN ?
It should allow to keep one binary version for all windows. The impacts on Unix binary will be null and almost inexistent for windows XP/vista (if those versions are detected, the "usual" network functions are used).
I have changed the following files:
win_main.c : built from the revision 11974
net.c : built from revision 12318
Changes:
src\ports\windows\win_main.c : small changes : I have created a new qboolean s_win2k to distinguish winXP and win2K since XP has the new network APIs. CVAR sys_os is fed accordingly.
src\common\net.c : I'm using pre processor instruction on _WIN32 (no impact on UNIX). For _win32 build, code checks the s_winNNN qboolean from win_main.c. Under winXP and vista it loads ws2_32.dll (first time it's needed) and calls the standard function (freeaddrinfo, getaddrinfo and getnameinfo). Otherwise it uses specific code (I didn't implement the full IPV6 functions but it's quite enough for IPV4)
That allows to keep one binary for all windows. It should have no impact compared to previous versions on winXP or vista (although it's not fully equivalent to the previous static DLL link)