Use limits.h for PATH_MAX
We use PATH_MAX everywhere by including limits.h so there is no point in doing a check for it in a different header when dealing with FreeBSD's libfetch. Also, remove autoconf check for strings.h header as it is not used anywhere. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
81dd9d3ebc
commit
d227771464
3 changed files with 6 additions and 10 deletions
|
@ -172,8 +172,8 @@ AS_IF([test "x$with_fetch" != "xno"],
|
||||||
AM_CONDITIONAL([HAVE_LIBFETCH], [test "x$ac_cv_lib_fetch_fetchParseURL" = "xyes"])
|
AM_CONDITIONAL([HAVE_LIBFETCH], [test "x$ac_cv_lib_fetch_fetchParseURL" = "xyes"])
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_CHECK_HEADERS([fcntl.h glob.h libintl.h locale.h mntent.h string.h strings.h \
|
AC_CHECK_HEADERS([fcntl.h glob.h libintl.h locale.h mntent.h string.h \
|
||||||
sys/ioctl.h sys/mount.h sys/param.h sys/statvfs.h sys/syslimits.h \
|
sys/ioctl.h sys/mount.h sys/param.h sys/statvfs.h \
|
||||||
sys/time.h sys/types.h sys/ucred.h syslog.h wchar.h])
|
sys/time.h sys/types.h sys/ucred.h syslog.h wchar.h])
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
|
|
@ -29,10 +29,8 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
/* the following two are needed on BSD for libfetch */
|
/* the following two are needed for FreeBSD's libfetch */
|
||||||
#if defined(HAVE_SYS_SYSLIMITS_H)
|
#include <limits.h> /* PATH_MAX */
|
||||||
#include <sys/syslimits.h> /* PATH_MAX */
|
|
||||||
#endif
|
|
||||||
#if defined(HAVE_SYS_PARAM_H)
|
#if defined(HAVE_SYS_PARAM_H)
|
||||||
#include <sys/param.h> /* MAXHOSTNAMELEN */
|
#include <sys/param.h> /* MAXHOSTNAMELEN */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -22,10 +22,8 @@
|
||||||
|
|
||||||
/* TODO: needed for the libfetch stuff, unfortunately- we should kill it */
|
/* TODO: needed for the libfetch stuff, unfortunately- we should kill it */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
/* the following two are needed on BSD for libfetch */
|
/* the following two are needed for FreeBSD's libfetch */
|
||||||
#if defined(HAVE_SYS_SYSLIMITS_H)
|
#include <limits.h> /* PATH_MAX */
|
||||||
#include <sys/syslimits.h> /* PATH_MAX */
|
|
||||||
#endif
|
|
||||||
#if defined(HAVE_SYS_PARAM_H)
|
#if defined(HAVE_SYS_PARAM_H)
|
||||||
#include <sys/param.h> /* MAXHOSTNAMELEN */
|
#include <sys/param.h> /* MAXHOSTNAMELEN */
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue