From: Doug MacEachern Date: Thu, 1 Oct 2009 00:28:08 +0000 (-0700) Subject: include netinet/in.h for sockaddr_in on FreeBSD X-Git-Tag: collectd-4.9.0~71^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=902f7621661d97dac0c7bc83f39acbf76a3b947b;p=collectd.git include netinet/in.h for sockaddr_in on FreeBSD 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 --- diff --git a/src/common.c b/src/common.c index 1ddb71dd..c6a651dc 100644 --- a/src/common.c +++ b/src/common.c @@ -48,6 +48,10 @@ #include #include +#if HAVE_NETINET_IN_H +# include +#endif + #ifdef HAVE_LIBKSTAT extern kstat_ctl_t *kc; #endif