cpuinfo: patched to compile for getauxval() path.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 17 Nov 2016 17:03:43 -0500
changeset 10628353f87de7efd
parent 10627 35fe16a7960a
child 10629 813f1b3c63aa
cpuinfo: patched to compile for getauxval() path.
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Thu Nov 17 16:10:32 2016 -0500
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Thu Nov 17 17:03:43 2016 -0500
     1.3 @@ -341,7 +341,7 @@
     1.4      const int error = sysctlbyname("hw.optional.neon", &neon, &length, NULL, 0);
     1.5      return (!error) && (neon != 0);
     1.6  #elif (defined(__LINUX__) || defined(__ANDROID__)) && defined(HAVE_GETAUXVAL)
     1.7 -    return ((getauxval(AT_HWCAP) & HWCAP_NEON) == HWCAP_NEON)
     1.8 +    return ((getauxval(AT_HWCAP) & HWCAP_NEON) == HWCAP_NEON);
     1.9  #elif (defined(__LINUX__) || defined(__ANDROID__))
    1.10      return readProcAuxvForNeon();   /* Android offers a static library for this, but it just parses /proc/self/auxv */
    1.11  #elif (defined(__WINDOWS__) || defined(__WINRT__)) && defined(_M_ARM)