From: Pádraig Brady Date: Thu, 22 Mar 2012 04:50:26 +0000 (+0000) Subject: maint: ensure PATH_MAX is set correctly X-Git-Tag: v8.16~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=049f1dbe6869a4918c9b2181b1014db6c0e3259b;p=thirdparty%2Fcoreutils.git 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. --- 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 before including this file #include #include + +#include "pathmax.h" #ifndef PATH_MAX # define PATH_MAX 8192 #endif