Define _SYS_AUXV_H to 1 not empty in sysdeps/powerpc/sysdep.h
David Miller
davem@davemloft.net
Tue Dec 4 21:43:00 GMT 2012
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.
More information about the Libc-alpha
mailing list