aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/sysdep.h
diff options
context:
space:
mode:
authorAdam Conrad <adconrad@0c3.net>2014-02-21 00:24:03 -0700
committerAdam Conrad <adconrad@0c3.net>2014-02-21 00:24:03 -0700
commit105fa3815690f5e370421701daf89cfa49afd5b3 (patch)
tree5aaffde227d307ff56ef4e66d331456928a4bcdd /sysdeps/powerpc/sysdep.h
parentb8cd1c4ea5788d10bdb586f22a75f38f284ccdf0 (diff)
downloadglibc-105fa3815690f5e370421701daf89cfa49afd5b3.zip
glibc-105fa3815690f5e370421701daf89cfa49afd5b3.tar.gz
glibc-105fa3815690f5e370421701daf89cfa49afd5b3.tar.bz2
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.
Diffstat (limited to 'sysdeps/powerpc/sysdep.h')
-rw-r--r--sysdeps/powerpc/sysdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/sysdep.h b/sysdeps/powerpc/sysdep.h
index 541b657..e6627c0 100644
--- a/sysdeps/powerpc/sysdep.h
+++ b/sysdeps/powerpc/sysdep.h
@@ -19,7 +19,7 @@
* Powerpc Feature masks for the Aux Vector Hardware Capabilities (AT_HWCAP).
* This entry is copied to _dl_hwcap or rtld_global._dl_hwcap during startup.
*/
-#define _SYS_AUXV_H 1
+#define _SYSDEPS_SYSDEP_H 1
#include <bits/hwcap.h>
#define PPC_FEATURE_970 (PPC_FEATURE_POWER4 + PPC_FEATURE_HAS_ALTIVEC)