mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
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: 67333c2632 ("util: Support elf_aux_info() on OpenBSD arm and ppc")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35422>
This commit is contained in:
parent
3bf5347436
commit
68be3b7159
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue