1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 09:50:29 +00:00

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.
This commit is contained in:
Florian Westphal 2008-05-10 21:49:51 +02:00
parent 0510bbe958
commit d9c26f3aeb
3 changed files with 2 additions and 4 deletions

View File

@ -14,9 +14,6 @@
#include <netdb.h> #include <netdb.h>
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#include <sys/socket.h>
#include <netinet/in.h>
#include "ng_ipaddr.h" #include "ng_ipaddr.h"

View File

@ -9,6 +9,7 @@
#include "portab.h" #include "portab.h"
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h>
#ifdef HAVE_ARPA_INET_H #ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h> # include <arpa/inet.h>
@ -115,3 +116,4 @@ ng_ipaddr_tostr_r(const ng_ipaddr_t *addr, char *d)
#endif #endif
/* -eof- */ /* -eof- */

View File

@ -20,7 +20,6 @@
#include "array.h" #include "array.h"
#include "tool.h" #include "tool.h"
#include "ng_ipaddr.h" #include "ng_ipaddr.h"
#include <netinet/in.h>
/* This struct must not be accessed directly */ /* This struct must not be accessed directly */
typedef struct _Res_Stat { typedef struct _Res_Stat {