Eric Blake <[EMAIL PROTECTED]> wrote:
> According to Jim Meyering on 10/9/2006 6:40 AM:
>>> Why not instead fix stat-macros.h to include <sys/stat.h>? Then future
>>> users of "stat-macros.h" don't have to worry about this portability trap.
>>
>> Because there have been problems with systems for which <sys/stat.h>
>> cannot be included more than once.
>
> Then it sounds like we should provide a <sys/stat.h> replacement, just as
> we do for <inttypes.h> and others.
Yep. Did you just volunteer? :-)
<sys/types.h> had similar problems.
That's why coreutils/src/system.h does this:
/* Include sys/types.h before this file. */
#if 2 <= __GLIBC__ && 2 <= __GLIBC_MINOR__
# if ! defined _SYS_TYPES_H
you must include <sys/types.h> before including this file
# endif
#endif
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils