From 105fa3815690f5e370421701daf89cfa49afd5b3 Mon Sep 17 00:00:00 2001 From: Adam Conrad Date: Fri, 21 Feb 2014 00:24:03 -0700 Subject: Allow sys/auxv.h to be used from the testsuite on powerpc and sparc. elf/tst-auxv.c includes misc/sys/auxv.h, which ends up not actually being included due to the guard overlap, and getauxval becomes an implicit declaration and implicit pointer conversion which means, at best, the test isn't actually testing what it thinks it is and, at worst, it'll crash and burn on platforms where implict pointer conversion is a Very Bad Thing. * 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. --- sysdeps/sparc/sysdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/sparc/sysdep.h') diff --git a/sysdeps/sparc/sysdep.h b/sysdeps/sparc/sysdep.h index 1404cc1b6c..a566bd84d5 100644 --- a/sysdeps/sparc/sysdep.h +++ b/sysdeps/sparc/sysdep.h @@ -15,7 +15,7 @@ License along with the GNU C Library; if not, see . */ -#define _SYS_AUXV_H 1 +#define _SYSDEPS_SYSDEP_H 1 #include #ifdef __ASSEMBLER__ -- cgit v1.2.1