about summary refs log tree commit diff
path: root/src/ipaddr/ng_ipaddr.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2008-05-10 21:49:51 +0200
committerFlorian Westphal <fw@strlen.de>2008-05-10 21:49:51 +0200
commitd9c26f3aeb35e979b72f7b0ac4220dbd07d7bc15 (patch)
tree1c02e11989555b4472a38f37c4c6094d19932ee2 /src/ipaddr/ng_ipaddr.h
parent0510bbe958c12ce7990dbc533b41a650678a10f6 (diff)
downloadngircd-d9c26f3aeb35e979b72f7b0ac4220dbd07d7bc15.tar.gz
ngircd-d9c26f3aeb35e979b72f7b0ac4220dbd07d7bc15.zip
ng_ipaddr.h must include netinet/in.h.
compile on FreeBSD 5.4 failed with:
./../ipaddr/ng_ipaddr.h:34: error: field `sin4' has incomplete type

Reported and tested by Jefferson S Almeida.
Diffstat (limited to 'src/ipaddr/ng_ipaddr.h')
-rw-r--r--src/ipaddr/ng_ipaddr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipaddr/ng_ipaddr.h b/src/ipaddr/ng_ipaddr.h
index 32839d08..7894af25 100644
--- a/src/ipaddr/ng_ipaddr.h
+++ b/src/ipaddr/ng_ipaddr.h
@@ -9,6 +9,7 @@
 #include "portab.h"
 
 #include <sys/socket.h>
+#include <netinet/in.h>
 
 #ifdef HAVE_ARPA_INET_H
 # include <arpa/inet.h>
@@ -115,3 +116,4 @@ ng_ipaddr_tostr_r(const ng_ipaddr_t *addr, char *d)
 #endif
 
 /* -eof- */
+