[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils-6.3 on MacOS X
From: |
Jim Meyering |
Subject: |
Re: coreutils-6.3 on MacOS X |
Date: |
Mon, 09 Oct 2006 15:02:06 +0200 |
Eric Blake <address@hidden> 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
- coreutils-6.3 on MacOS X, Bruno Haible, 2006/10/04
- Re: coreutils-6.3 on MacOS X, Jim Meyering, 2006/10/09
- Re: coreutils-6.3 on MacOS X, Paul Eggert, 2006/10/09
- Re: coreutils-6.3 on MacOS X, Jim Meyering, 2006/10/09
- Re: coreutils-6.3 on MacOS X, Bruno Haible, 2006/10/09
- Re: coreutils-6.3 on MacOS X, Paul Eggert, 2006/10/10
- Re: coreutils-6.3 on MacOS X, Jim Meyering, 2006/10/11
- Re: gcc warnings, Bruno Haible, 2006/10/11