summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bde5a2c)
raw | patch | inline | side by side (parent: bde5a2c)
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
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 1ddb71ddcd1077f211eeb5b904748ddc8204fc22..c6a651dc56248050ccc0b7a50c7aca68e4f2c3f9 100644 (file)
--- a/src/common.c
+++ b/src/common.c
#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