make struct addrinfo os dependent