Skip to content

Commit

Permalink
Fix HAVE_GETAUXVAL check for FreeBSD (#410)
Browse files Browse the repository at this point in the history
FreeBSD doesn't have getauxval().
  • Loading branch information
pkubaj committed Aug 7, 2022
1 parent 3022dad commit 349cc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libFLAC/cpu.c
Expand Up @@ -251,7 +251,7 @@ ppc_cpu_info (FLAC__CPUInfo *info)
} else if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_2_07) {
info->ppc.arch_2_07 = true;
}
#elif defined(__FreeBSD__) && defined(HAVE_GETAUXVAL)
#elif defined(__FreeBSD__) && defined(HAVE_SYS_AUXV_H)
unsigned long hwcaps;
elf_aux_info(AT_HWCAP2, &hwcaps, sizeof(hwcaps));
if (hwcaps & PPC_FEATURE2_ARCH_3_00) {
Expand Down

0 comments on commit 349cc07

Please sign in to comment.