commit fc93044909597798ca416dacc312bdb9c792c6ed from: Florian Westphal <fw@strlen.de> date: Sat May 10 19:53:39 2008 UTC Fix complie on FreeBSD 5.4 and AIX. This is picked from commits d9c26f3aeb35e979b72f7b0ac4220dbd07d7bc15 "ng_ipaddr.h must include netinet/in.h." and 4e507881f30c8b4296d87de519658e45f8cb417f "On AIX (for example) socklen_t is defined in sys/socket.h" commit - 2e0c62df915694ebdc1a530cae1b802db2ad9ccc commit + fc93044909597798ca416dacc312bdb9c792c6ed blob - bbfb5a73741f3eab1d0eb69ec31a406770322eed blob + 3b0595d79719b92b13edfd0f4a5422311f1ff550 --- 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 blob - 1e198b0e7ce41d49e0d18f8f0189e8a9dc1390c3 blob + 3bc075e6434dc0be9792dbb843db0c6df38522c5 --- src/ipaddr/ng_ipaddr.h +++ src/ipaddr/ng_ipaddr.h @@ -8,6 +8,9 @@ #define NG_IPADDR_HDR #include "portab.h" +#include <sys/socket.h> +#include <netinet/in.h> + #ifdef HAVE_ARPA_INET_H # include <arpa/inet.h> #else