On Wed, May 13, 2009 at 12:50 AM, Simon Marlow <marlowsd@gmail.com> wrote:
One option is to check for its existence at runtime. Take a look at
http://darcs.haskell.org/packages/directory/cbits/directory.c
for an example of somewhere else we do this.
GHC currently works on (allegedly) NT4 and later.
Are the prepackaged binaries built on NT4 too? I found a way to get getaddrinfo detected it works properly (which somewhat shocked me), but I have no way to test it on obsolete Windows releases.
I can write a DLL-based shim that will look in ws2_32.dll first, then the older IPv6 preview code in wship6.dll, and if neither one is present, it will simply fail. If I do that, do you have a way to test it on, say, Windows 2000 or 2003 Server or such?