From 81dd9d3ebc3eca04fade4df4689c53d1d11c5f19 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 18 Dec 2010 04:48:09 +1000 Subject: 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 Signed-off-by: Dan McGee --- src/util/cleanupdelta.c | 2 ++ src/util/testdb.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/util') diff --git a/src/util/cleanupdelta.c b/src/util/cleanupdelta.c index c1ef18c4..20102824 100644 --- a/src/util/cleanupdelta.c +++ b/src/util/cleanupdelta.c @@ -17,6 +17,8 @@ * along with this program. If not, see . */ +#include "config.h" + #include #include #include diff --git a/src/util/testdb.c b/src/util/testdb.c index 53a0dfa3..332224e1 100644 --- a/src/util/testdb.c +++ b/src/util/testdb.c @@ -17,6 +17,8 @@ * along with this program. If not, see . */ +#include "config.h" + #include #include #include -- cgit v1.2.3-70-g09d2