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.
This commit is contained in:
H. Peter Anvin 2007-01-08 16:53:19 -08:00
parent 4d02d827fb
commit 2b36598746

View file

@ -96,7 +96,42 @@ dnl
dnl <sys/socket.h> isn't among the list of standard headers that autoconf checks, dnl <sys/socket.h> isn't among the list of standard headers that autoconf checks,
dnl but POSIX requires <sys/socket.h> for socklen_t to be defined. dnl but POSIX requires <sys/socket.h> for socklen_t to be defined.
dnl dnl
AC_CHECK_TYPES(socklen_t,,,[ AC_CHECK_TYPES(socklen_t,,,
[
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
# include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h> # include <sys/socket.h>
#endif #endif