the discussion on support request 1108292 contains a fix
for the problem of using getaddrinfo() and freeaddrinfo()
under Win2k with mingw.
This does not really seem to be a bug in mingw but rather
in Microsoft's documentation on these functions. However,
it seems that the problem can be easily fixed in mingw.