[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] stat: use pathmax.h only if needed
From: |
Bruno Haible |
Subject: |
Re: [PATCH] stat: use pathmax.h only if needed |
Date: |
Mon, 19 Sep 2011 11:14:07 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
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 platform"
> -# endif
>
> if (result == -1 && errno == ENOENT)
> {
>
The comment "The only known systems ..." is now out of place. How about moving
it together with the 3 #ifndef/#error/#endif lines?
Bruno
--
In memoriam James A. Garfield <http://en.wikipedia.org/wiki/James_A._Garfield>