Port test-getaddrinfo to Solaris (fixed version; previous change was wrong).