bug-coreutils
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]