proper includes for getaddrinfo and inet_ntop
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Fri, 19 Nov 2010 00:11:16 +0100
changeset 154 142730cfecee
parent 153 b223089872b6
child 155 a54dcc86addb
proper includes for getaddrinfo and inet_ntop committer: Markus Bröker <mbroeker@largo.homelinux.org>
dnsresolve.c
--- 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)
 {