Check for machine/limits.h in addition to sys/limits.h

svn:r1705
This commit is contained in:
Nick Mathewson 2004-04-25 23:47:26 +00:00
parent 9e5d2ad91c
commit 568a4d187a
3 changed files with 7 additions and 1 deletions

View File

@ -137,7 +137,7 @@ AC_CHECK_HEADERS(unistd.h string.h signal.h netdb.h ctype.h poll.h sys/stat.h sy
dnl These headers are not essential dnl These headers are not essential
AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h) AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h)
AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime) AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime)
AC_REPLACE_FUNCS(strlcat strlcpy) AC_REPLACE_FUNCS(strlcat strlcpy)

View File

@ -30,6 +30,9 @@
#ifdef HAVE_SYS_LIMITS_H #ifdef HAVE_SYS_LIMITS_H
#include <sys/limits.h> #include <sys/limits.h>
#endif #endif
#ifdef HAVE_MACHINE_LIMITS_H
#include <machine/limits.h>
#endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> /* Must be included before sys/stat.h for Ultrix */ #include <sys/types.h> /* Must be included before sys/stat.h for Ultrix */
#endif #endif

View File

@ -37,6 +37,9 @@
#ifdef HAVE_SYS_LIMITS_H #ifdef HAVE_SYS_LIMITS_H
#include <sys/limits.h> #include <sys/limits.h>
#endif #endif
#ifdef HAVE_MACHINE_LIMITS_H
#include <machine/limits.h>
#endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> /* Must be included before sys/stat.h for Ultrix */ #include <sys/types.h> /* Must be included before sys/stat.h for Ultrix */
#endif #endif