This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Define _SYS_AUXV_H to 1 not empty in sysdeps/powerpc/sysdep.h
- From: David Miller <davem at davemloft dot net>
- To: joseph at codesourcery dot com
- Cc: libc-alpha at sourceware dot org, ryan dot arnold at gmail dot com
- Date: Tue, 04 Dec 2012 16:43:18 -0500 (EST)
- Subject: Re: Define _SYS_AUXV_H to 1 not empty in sysdeps/powerpc/sysdep.h
- References: <Pine.LNX.4.64.1212042139190.17916@digraph.polyomino.org.uk>
From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Tue, 4 Dec 2012 21:40:15 +0000
> This is the last of the straightforward fixes for warnings I see
> building for powerpc32 (hard-float, it's possible I might see more on
> going back to soft-float testing having cleaned up the hard-float
> noise). sysdep.h defines _SYS_AUXV_H before including <bits/hwcap.h>
> (this is a kludge to avoid errors from the test that <bits/hwcap.h>
> isn't included directly by a user), but defines it to empty, when the
> real <sys/auxv.h> defines it to 1, so resulting in warnings about
> macro redefinitions when both headers get included in the same file.
> Fixed by defining it to 1 in sysdep.h.
>
> I don't plan to do anything about the warnings from sotruss-lib.c
> about lack of powerpc support there, but hope the powerpc maintainers
> (and, likewise, the sh and s390 maintainers) will deal with those.
>
> 2012-12-04 Joseph Myers <joseph@codesourcery.com>
>
> * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
This is fine.