Merge pull request #21514 from pkubaj:patch-1

This commit is contained in:
Alexander Alekhin 2022-01-25 18:44:26 +00:00
commit 906f5f7e96

View File

@ -621,7 +621,7 @@ struct HWFeatures
} }
} }
#elif (defined __ppc64__ || defined __PPC64__) && defined __FreeBSD__ #elif (defined __ppc64__ || defined __PPC64__) && defined __FreeBSD__
unsigned int hwcap = 0; unsigned long hwcap = 0;
elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap));
if (hwcap & PPC_FEATURE_HAS_VSX) { if (hwcap & PPC_FEATURE_HAS_VSX) {
elf_aux_info(AT_HWCAP2, &hwcap, sizeof(hwcap)); elf_aux_info(AT_HWCAP2, &hwcap, sizeof(hwcap));