forked from mirrors/tftp-hpa-google
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:
parent
4d02d827fb
commit
2b36598746
1 changed files with 36 additions and 1 deletions
37
configure.in
37
configure.in
|
@ -96,7 +96,42 @@ dnl
|
|||
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
|
||||
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
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue