From 2b36598746a2b1c52fc9df4c6cadd527cf12f0ff Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 8 Jan 2007 16:53:19 -0800 Subject: [PATCH] When specifying includes, need to specify ALL includes It seems that overriding the default includes overrides ALL includes; so we need to specify them all. Sigh. --- configure.in | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 4b6ef76..fa95f4f 100644 --- a/configure.in +++ b/configure.in @@ -96,7 +96,42 @@ dnl dnl isn't among the list of standard headers that autoconf checks, dnl but POSIX requires for socklen_t to be defined. dnl -AC_CHECK_TYPES(socklen_t,,,[ +AC_CHECK_TYPES(socklen_t,,, +[ +#include +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_SYS_STAT_H +# include +#endif +#if STDC_HEADERS +# include +# include +#else +# if HAVE_STDLIB_H +# include +# endif +#endif +#if HAVE_STRING_H +# if !STDC_HEADERS && HAVE_MEMORY_H +# include +# endif +# include +#endif +#if HAVE_STRINGS_H +# include +#endif +#if HAVE_INTTYPES_H +# include +#else +# if HAVE_STDINT_H +# include +# endif +#endif +#if HAVE_UNISTD_H +# include +#endif #ifdef HAVE_SYS_SOCKET_H # include #endif