Re: [PATCH] stat: use pathmax.h only if needed

2011-09-19 Thread Paul Eggert
On 09/19/11 02:14, Bruno Haible wrote: > The comment "The only known systems ..." is now out of place. How about moving > it together with the 3 #ifndef/#error/#endif lines? Yes, thanks, I did that.

Re: [PATCH] stat: use pathmax.h only if needed

2011-09-19 Thread Bruno Haible
Paul Eggert wrote: > @@ -73,9 +79,6 @@ rpl_stat (char const *name, struct stat *st) > #if REPLACE_FUNC_STAT_DIR >/* The only known systems where REPLACE_FUNC_STAT_DIR is needed also > have a constant PATH_MAX. */ > -# ifndef PATH_MAX > -# error "Please port this replacement to your pla

[PATCH] stat: use pathmax.h only if needed

2011-09-18 Thread Paul Eggert
* lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR. This is better for Emacs, which does not have a mingw port and therefore can avoid the pathmax module. --- ChangeLog |5 + lib/stat.c | 11 +++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLo