summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-12-17 19:48:09 +0100
committerDan McGee <dan@archlinux.org>2010-12-30 02:24:13 +0100
commit81dd9d3ebc3eca04fade4df4689c53d1d11c5f19 (patch)
tree443566a22e9787f2cfac44a9eb2e59631ab118d1 /src/util
parentfcc09bd7e35766a5f025282491501824ee11cf27 (diff)
downloadpacman-81dd9d3ebc3eca04fade4df4689c53d1d11c5f19.tar.gz
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 'src/util')
-rw-r--r--src/util/cleanupdelta.c2
-rw-r--r--src/util/testdb.c2
2 files changed, 4 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
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 <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>