One of the portability problems for native Windows are sockets and networking functions.
This was written for the
getaddrinfo module, but may be applicable to
other functions too.
getaddrinfo function exists in
on Windows XP. The function declaration is present if
WINVER >= 0x0501.
Windows 2000 does not have
getaddrinfo in its WS2_32.DLL.
Thus, if you want to assume Windows XP or later, you can add
AC_DEFINE([WINVER], [0x0501]) to avoid compiling the (partial)
If you want to support Windows 2000, don’t do anything. The
replacement function will open WS2_32.DLL during run-time to
see if there is a
getaddrinfo function available, and use it when