maint: ensure PATH_MAX is set correctly
authorPádraig Brady <P@draigBrady.com>
Thu, 22 Mar 2012 04:50:26 +0000 (04:50 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 22 Mar 2012 12:12:26 +0000 (12:12 +0000)
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
src/system.h

index 3980259..bb414ef 100644 (file)
@@ -171,6 +171,7 @@ gnulib_modules="
   nproc
   obstack
   parse-datetime
+  pathmax
   perl
   physmem
   pipe
index 49cd08a..93d48c5 100644 (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