From 3045d9d45879dcb9628c7b429b51b69490eb4878 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 12 May 2008 13:51:12 +1200 Subject: [PATCH] Bug 2206: Build error caused by incorrect configure include file detection Adds type-definitions for the *BSD family networking OS header files which depend on them without including the necessary definition headers themselves. Completes fix for Bug 2196 detailed files. --- acinclude.m4 | 6 ++++++ include/squid_types.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 5e575d232b..ec8cc4bd15 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -22,6 +22,9 @@ AC_DEFUN([SQUID_DEFAULT_INCLUDES],[[ #if HAVE_SYS_SELECT_H #include #endif +#if HAVE_NETINET_IN_SYSTM_H +#include +#endif ]]) dnl and this is for AC_CHECK_SIZEOF @@ -42,6 +45,9 @@ SQUID_DEFAULT_INCLUDES #if HAVE_NETINET_IN_H #include #endif +#if HAVE_NETINET_IP_H +#include +#endif #if HAVE_NETINET_IP_COMPAT_H #include #endif diff --git a/include/squid_types.h b/include/squid_types.h index 720d370b64..4492d2ebb6 100644 --- a/include/squid_types.h +++ b/include/squid_types.h @@ -73,6 +73,10 @@ #if HAVE_SYS_SELECT_H #include #endif +#if HAVE_NETINET_IN_SYSTM_H +/* Several OS require types declared by in_systm.h without including it themselves. */ +#include +#endif /* * ISO C99 Standard printf() macros for 64 bit integers -- 2.47.2