From 902f7621661d97dac0c7bc83f39acbf76a3b947b Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 30 Sep 2009 17:28:08 -0700 Subject: [PATCH] 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 --- src/common.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2