GNOME Bugzilla – Bug 604458
Windows 2000 doesn't have some network APIs.
Last modified: 2009-12-14 00:06:15 UTC
'getaddrinfo', 'getnameinfo' and 'freeaddrinfo' aren't implemented on Windows 2000. If we try to run a program with GLib on Windows 2000, it will be aborted. But those APIs are defined in 'wspiapi.h'. getaddrinfo -> WspiapiGetAddrInfo getnameinfo -> WspiapiGetNameInfo freeaddrinfo -> WspiapiFreeAddrInfo (Would you read 'wspiapi.h', if you want to know well.) They are compatible on Windows 2000. So I suggest that '#include <wspiapi.h>' is included in 'gnetworkingprivate.h'.
Run some older version of GLib on Windows 2000 then. Or come up with a patch. The "standard" distributed GLib binaries are compiled with MinGW, and the wspiapi.h in MinGW does not include the definitions you refer to. Just Microsoft's does.
also, this is a dup of bug 603527, which also talks about doing a patch that's conditional on non-mingw
*** This bug has been marked as a duplicate of bug 603527 ***