Commit Diff
Diff:
0510bbe958c12ce7990dbc533b41a650678a10f6
d9c26f3aeb35e979b72f7b0ac4220dbd07d7bc15
d9c26f3aeb35e979b72f7b0ac4220dbd07d7bc15
Commit:
d9c26f3aeb35e979b72f7b0ac4220dbd07d7bc15
Tree:
1c02e11989555b4472a38f37c4c6094d19932ee2
Committer:
Florian Westphal <fw@strlen.de>
Date:
Sat May 10 19:49:51 2008
UTC
Message:
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.
--- src/ipaddr/ng_ipaddr.c
+++ src/ipaddr/ng_ipaddr.c
@@ -14,10 +14,7 @@
#include <netdb.h>
#include <sys/types.h>
#endif
-#include <sys/socket.h>
-#include <netinet/in.h>
-
#include "ng_ipaddr.h"
GLOBAL bool
--- src/ipaddr/ng_ipaddr.h
+++ 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- */
+
--- src/ngircd/resolve.h
+++ src/ngircd/resolve.h
@@ -20,7 +20,6 @@
#include "array.h"
#include "tool.h"
#include "ng_ipaddr.h"
-#include <netinet/in.h>
/* This struct must not be accessed directly */
typedef struct _Res_Stat {