tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/48303: Linux cross build fails on ppc

On Mon, Oct 28, 2013 at 03:34:41PM +0200, Alan Barrett wrote:
> On Mon, 28 Oct 2013, Joerg Sonnenberger wrote:
> >>[problems with #define __unused in src/tools/compat/compat_defs.h]
> >
> >This change is not acceptable as it will break any place using __unused.
> >The short version is that the glibc header shouldnt' be doing this.
> Named starting with "__" are reserved to the implementation.  Both
> NetBSD's headers and Linux or glibc's headers think that they are
> "the implementation", and so are allowed to use "__unused" in a way
> that suits them.  The problem arises when we mix both
> implementations, by building NetBSD on a Linux host.

There is enough historic precend for __unused and it is even (commented
out) in Linux's sys/cdefs.h. So really, it is just an inconsistent
behavior in glibc.


Home | Main Index | Thread Index | Old Index