<resolv.h>: Include <netinet/in.h> for in_addr and sockaddr_in.