From 68be3b7159332aa819914922e900e206841b94fb Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 7 Jun 2025 10:06:00 +1000 Subject: [PATCH] util: fix OpenBSD/powerpc64 build use defined(HAVE_ELF_AUX_INFO) as HAVE_ELF_AUX_INFO is not defined to a value avoids 'error: expected value in expression' on powerpc64 Fixes: 67333c2632b ("util: Support elf_aux_info() on OpenBSD arm and ppc") Part-of: --- src/util/u_cpu_detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c index d67a72ee1db..a4d863170f1 100644 --- a/src/util/u_cpu_detect.c +++ b/src/util/u_cpu_detect.c @@ -140,7 +140,7 @@ check_os_altivec_support(void) #endif #if defined(__ALTIVEC__) && defined(__VSX__) /* Do nothing */ -#elif DETECT_OS_FREEBSD || (DETECT_OS_OPENBSD && HAVE_ELF_AUX_INFO) /* !__ALTIVEC__ || !__VSX__ */ +#elif DETECT_OS_FREEBSD || (DETECT_OS_OPENBSD && defined(HAVE_ELF_AUX_INFO)) /* !__ALTIVEC__ || !__VSX__ */ unsigned long hwcap = 0; #ifdef HAVE_ELF_AUX_INFO elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap));