Detect undefined PATH_MAX
commit81dd9d3ebc3eca04fade4df4689c53d1d11c5f19
authorAllan McRae <allan@archlinux.org>
Fri, 17 Dec 2010 18:48:09 +0000 (18 04:48 +1000)
committerDan McGee <dan@archlinux.org>
Thu, 30 Dec 2010 01:24:13 +0000 (29 19:24 -0600)
tree443566a22e9787f2cfac44a9eb2e59631ab118d1
parentfcc09bd7e35766a5f025282491501824ee11cf27
Detect undefined PATH_MAX

POSIX does not require PATH_MAX be defined when there is not actual
limit to its value.  This affects HURD based systems.  Work around
this by defining PATH_MAX to 4096 (as on Linux) when this is not
defined.

Also, clean up inclusions of limits.h and remove autoconf check for
this header as we do not use macro shields for its inclusion anyway.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
acinclude.m4
configure.ac
lib/libalpm/be_sync.c
lib/libalpm/db.h
lib/libalpm/dload.c
lib/libalpm/error.c
lib/libalpm/package.c
lib/libalpm/sync.c
lib/libalpm/trans.c
src/util/cleanupdelta.c
src/util/testdb.c