--- a/dnsresolve.c +++ b/dnsresolve.c @@ -6,8 +6,11 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/types.h> +#include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> +#include <netinet/in.h> int main (int argc, char **argv) {