From 049f1dbe6869a4918c9b2181b1014db6c0e3259b Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Thu, 22 Mar 2012 04:50:26 +0000
Subject: [PATCH] maint: ensure PATH_MAX is set correctly
This reverts part of commit v8.12-103-g54cbe6e.
* src/system.h: Include gnulib's pathmax.h to honor
system specific limits, and then we set PATH_MAX only if needed.
Note pathmax.h no longer uses pathconf ("/", _PC_PATH_MAX).
Note I didn't reinstate the comments about limits.h inclusion
order, because pathmax.h includes limits.h anyway.
---
bootstrap.conf | 1 +
src/system.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/bootstrap.conf b/bootstrap.conf
index 3980259d70..bb414ef029 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -171,6 +171,7 @@ gnulib_modules="
nproc
obstack
parse-datetime
+ pathmax
perl
physmem
pipe
diff --git a/src/system.h b/src/system.h
index 49cd08a3b0..93d48c57d4 100644
--- a/src/system.h
+++ b/src/system.h
@@ -41,6 +41,8 @@ you must include