include netinet/in.h for sockaddr_in on FreeBSD
authorDoug MacEachern <dougm@hyperic.com>
Thu, 1 Oct 2009 00:28:08 +0000 (17:28 -0700)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 1 Oct 2009 06:40:56 +0000 (08:40 +0200)
Fixes:

 common.c: In function 'service_name_to_port_number':
 common.c:1112: error: dereferencing pointer to incomplete type
 common.c:1119: error: dereferencing pointer to incomplete type

src/common.c

index 1ddb71d..c6a651d 100644 (file)
 #include <sys/socket.h>
 #include <netdb.h>
 
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
 #ifdef HAVE_LIBKSTAT
 extern kstat_ctl_t *kc;
 #endif