From 54cbe6e6434d3a148778ff72eebc75b3ca98cd34 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 24 Jun 2011 09:12:59 +0200 Subject: maint: don't use gnulib's pathmax module; define PATH_MAX if needed * bootstrap.conf (gnulib_modules): Remove pathmax. * src/system.h: Don't include "pathmax.h". (PATH_MAX) [!PATH_MAX]: Define to 8192. Defining it to a constant is preferable to using a definition from pathmax.h that might expand to pathconf ("/", _PC_PATH_MAX). Prompted by discussion leading to: http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/27183/focus=27269 --- src/system.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/system.h b/src/system.h index 95ef2c3b3..d250d94f8 100644 --- a/src/system.h +++ b/src/system.h @@ -40,11 +40,10 @@ you must include before including this file #include -/* limits.h must come before pathmax.h because limits.h on some systems - undefs PATH_MAX, whereas pathmax.h sets PATH_MAX. */ #include - -#include "pathmax.h" +#ifndef PATH_MAX +# define PATH_MAX 8192 +#endif #include "configmake.h" -- cgit v1.2.3-70-g09d2