[PATCH] Allow inclusion of sysdep.h and sys/auxv.h at build time
Alan Modra
amodra@gmail.com
Thu Feb 20 07:24:00 GMT 2014
On Wed, Feb 19, 2014 at 11:39:43PM -0700, Adam Conrad wrote:
> On powerpc and sparc, one can't include sys/auxv.h at build time, due
> to a header guard clash with sysdep.h. This is a non-issue at runtime,
> as sysdep.h is an internal header not exposed to userspace, but it does
> mean that either the testsuite can't include sys/auxv.h (as tst-auxv.c
> does), or the includes need to be mangled to make it work. This simple
> patch gets around that. Okay to commit?
>
> * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
> synonym for _SYS_AUXV_H to allow direct inclusion.
> * sysdeps/sparc/bits/hwcap.h: Likewise.
> * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
> _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
> * sysdeps/sparc/sysdep.h: Likewise.
Looks reasonable.
--
Alan Modra
Australia Development Lab, IBM
More information about the Libc-alpha
mailing list