1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-14 19:32:10 +02:00

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.
This commit is contained in:
Pádraig Brady
2012-03-22 04:50:26 +00:00
parent 1b1d656b2d
commit 049f1dbe68
2 changed files with 3 additions and 0 deletions

View File

@@ -171,6 +171,7 @@ gnulib_modules="
nproc
obstack
parse-datetime
pathmax
perl
physmem
pipe

View File

@@ -41,6 +41,8 @@ you must include <sys/types.h> before including this file
#include <unistd.h>
#include <limits.h>
#include "pathmax.h"
#ifndef PATH_MAX
# define PATH_MAX 8192
#endif