projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bde5a2c
)
include netinet/in.h for sockaddr_in on FreeBSD
author
Doug MacEachern
<dougm@hyperic.com>
Thu, 1 Oct 2009 00:28:08 +0000
(17:28 -0700)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/src/common.c
b/src/common.c
index
1ddb71d
..
c6a651d
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-48,6
+48,10
@@
#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