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
parent
e2c377effd
commit
2c44518fcb
2
cpu.cpp
2
cpu.cpp
|
|
@ -447,7 +447,7 @@ inline bool CPU_QueryAES()
|
||||||
#elif defined(__linux__) && defined(__aarch32__)
|
#elif defined(__linux__) && defined(__aarch32__)
|
||||||
if (getauxval(AT_HWCAP2) & HWCAP2_AES)
|
if (getauxval(AT_HWCAP2) & HWCAP2_AES)
|
||||||
return true;
|
return true;
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__) && defined(__aarch64__)
|
||||||
struct utsname systemInfo;
|
struct utsname systemInfo;
|
||||||
systemInfo.machine[0] = '\0';
|
systemInfo.machine[0] = '\0';
|
||||||
uname(&systemInfo);
|
uname(&systemInfo);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue