From d9c26f3aeb35e979b72f7b0ac4220dbd07d7bc15 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sat, 10 May 2008 21:49:51 +0200 Subject: [PATCH] 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 | 3 --- src/ipaddr/ng_ipaddr.h | 2 ++ src/ngircd/resolve.h | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ipaddr/ng_ipaddr.c b/src/ipaddr/ng_ipaddr.c index bbfb5a73..3b0595d7 100644 --- a/src/ipaddr/ng_ipaddr.c +++ b/src/ipaddr/ng_ipaddr.c @@ -14,9 +14,6 @@ #include #include #endif -#include - -#include #include "ng_ipaddr.h" 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 +#include #ifdef HAVE_ARPA_INET_H # include @@ -115,3 +116,4 @@ ng_ipaddr_tostr_r(const ng_ipaddr_t *addr, char *d) #endif /* -eof- */ + diff --git a/src/ngircd/resolve.h b/src/ngircd/resolve.h index 9fd16bee..8ff88c8b 100644 --- a/src/ngircd/resolve.h +++ b/src/ngircd/resolve.h @@ -20,7 +20,6 @@ #include "array.h" #include "tool.h" #include "ng_ipaddr.h" -#include /* This struct must not be accessed directly */ typedef struct _Res_Stat { -- 2.39.2