Solaris doesn't have getifaddrs(), adjust code accordingly.