cpuinfo: more patching for Android. Legacy platform targets are a pain.
This commit is contained in:
parent
3068b91064
commit
f2d88cb57a
1 changed files with 7 additions and 1 deletions
|
@ -51,7 +51,13 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH)
|
#if (defined(__LINUX__) || defined(__ANDROID__)) && defined(__ARM_ARCH)
|
||||||
#include <asm/hwcap.h>
|
/*#include <asm/hwcap.h>*/
|
||||||
|
#ifndef AT_HWCAP
|
||||||
|
#define AT_HWCAP 16
|
||||||
|
#endif
|
||||||
|
#ifndef HWCAP_NEON
|
||||||
|
#define HWCAP_NEON (1 << 12)
|
||||||
|
#endif
|
||||||
#if defined HAVE_GETAUXVAL
|
#if defined HAVE_GETAUXVAL
|
||||||
#include <sys/auxv.h>
|
#include <sys/auxv.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue