https://bugs.openldap.org/show_bug.cgi?id=9739
--- Comment #13 from Howard Chu hyc@openldap.org --- A footnote for posterity: on Windows we currently fail to detect gai_strerror() and substitute our own. In fact, the function exists on Windows, but it's only declared if you #include <ws2tcpip.h>, which our configure check doesn't do.
But it's not worth fixing that, because the M$ docs say their function is not thread-safe, so we're better off using our substitute anyway.
https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-get...