Mesa (main): util: unbreak non-linux mips64 build
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Feb 26 00:59:25 UTC 2022
Module: Mesa
Branch: main
Commit: 7d609431d4f69903648f6bbb5b3bfc87b807ab17
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d609431d4f69903648f6bbb5b3bfc87b807ab17
Author: Jonathan Gray <jsg at jsg.id.au>
Date: Fri Feb 25 23:17:32 2022 +1100
util: unbreak non-linux mips64 build
Put linux specific path inside an ifdef. Unbreaks mips64 build on
OpenBSD and likely other systems without Elf64_auxv_t.
Fixes: 88b234d7a7c ("gallivm: add basic mips64 support and set mcpu to mips64r5 on ls3a4000")
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15166>
---
src/util/u_cpu_detect.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c
index 7375fabfed8..636c186743c 100644
--- a/src/util/u_cpu_detect.c
+++ b/src/util/u_cpu_detect.c
@@ -438,6 +438,7 @@ check_os_arm_support(void)
static void
check_os_mips64_support(void)
{
+#if defined(PIPE_OS_LINUX)
Elf64_auxv_t aux;
int fd;
@@ -453,6 +454,7 @@ check_os_mips64_support(void)
}
close (fd);
}
+#endif /* PIPE_OS_LINUX */
}
#endif /* PIPE_ARCH_MIPS64 */
More information about the mesa-commit
mailing list