Fix iOS ARM build

cpu.cpp:451:17: error: variable has incomplete type 'struct utsname'

        struct utsname systemInfo;

                       ^

cpu.cpp:451:9: note: forward declaration of 'utsname'

        struct utsname systemInfo;

               ^

1 error generated.
pull/462/head
Jeffrey Walton 2017-08-17 13:52:26 -04:00
parent e2c377effd
commit 2c44518fcb
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ inline bool CPU_QueryAES()
#elif defined(__linux__) && defined(__aarch32__)
if (getauxval(AT_HWCAP2) & HWCAP2_AES)
return true;
#elif defined(__APPLE__)
#elif defined(__APPLE__) && defined(__aarch64__)
struct utsname systemInfo;
systemInfo.machine[0] = '\0';
uname(&systemInfo);