diff options
Diffstat (limited to 'misc/getauxval.c')
-rw-r--r-- | misc/getauxval.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/getauxval.c b/misc/getauxval.c index 4321e37..81474ee 100644 --- a/misc/getauxval.c +++ b/misc/getauxval.c @@ -17,7 +17,7 @@ #include <sys/auxv.h> #include <ldsodefs.h> - +#include <dl-hwcap2.h> unsigned long int __getauxval (unsigned long int type) @@ -26,6 +26,10 @@ __getauxval (unsigned long int type) if (type == AT_HWCAP) return GLRO(dl_hwcap); +#if HWCAP2_AVAIL + else if (type == AT_HWCAP2) + return GLRO(dl_hwcap2); +#endif for (p = GLRO(dl_auxv); p->a_type != AT_NULL; p++) if (p->a_type == type) |