From 32cb34945e9daca0788b099bfb0034b80cc8ebaf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 17 Nov 2016 17:03:43 -0500 Subject: [PATCH] cpuinfo: patched to compile for getauxval() path. --- src/cpuinfo/SDL_cpuinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c index c791baa86..69de2bec8 100644 --- a/src/cpuinfo/SDL_cpuinfo.c +++ b/src/cpuinfo/SDL_cpuinfo.c @@ -341,7 +341,7 @@ CPU_haveNEON(void) const int error = sysctlbyname("hw.optional.neon", &neon, &length, NULL, 0); return (!error) && (neon != 0); #elif (defined(__LINUX__) || defined(__ANDROID__)) && defined(HAVE_GETAUXVAL) - return ((getauxval(AT_HWCAP) & HWCAP_NEON) == HWCAP_NEON) + return ((getauxval(AT_HWCAP) & HWCAP_NEON) == HWCAP_NEON); #elif (defined(__LINUX__) || defined(__ANDROID__)) return readProcAuxvForNeon(); /* Android offers a static library for this, but it just parses /proc/self/auxv */ #elif (defined(__WINDOWS__) || defined(__WINRT__)) && defined(_M_ARM)