diff options
author | Allan McRae <allan@archlinux.org> | 2010-12-18 04:48:09 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-12-29 19:24:13 -0600 |
commit | 81dd9d3ebc3eca04fade4df4689c53d1d11c5f19 (patch) | |
tree | 443566a22e9787f2cfac44a9eb2e59631ab118d1 /lib/libalpm/error.c | |
parent | fcc09bd7e35766a5f025282491501824ee11cf27 (diff) | |
download | pacman-81dd9d3ebc3eca04fade4df4689c53d1d11c5f19.tar.xz |
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>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r-- | lib/libalpm/error.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c index 78a78667..d4c296fc 100644 --- a/lib/libalpm/error.c +++ b/lib/libalpm/error.c @@ -22,7 +22,6 @@ /* TODO: needed for the libfetch stuff, unfortunately- we should kill it */ #include <stdio.h> -#include <limits.h> /* the following two are needed on BSD for libfetch */ #if defined(HAVE_SYS_SYSLIMITS_H) #include <sys/syslimits.h> /* PATH_MAX */ |