summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-25 12:19:39 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-25 12:19:39 +0000
commit54652c815e509ba095bf4b23c35ff0980c6e80d8 (patch)
tree2ad9f15e956fd7e0b7a8935417bf0f17b0d59605
parentda94a257aae925d151aa80b7032181fa55c0b903 (diff)
unbreak Mesa build on mips64
ifdef out a linux specific path introduced upstream in: gallivm: add basic mips64 support and set mcpu to mips64r5 on ls3a4000 88b234d7a7cd71fcb4955428010f238ec9530431 https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11955 to fix build on mips64 reported by deraadt@ tested by visa@
-rw-r--r--lib/mesa/src/util/u_cpu_detect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mesa/src/util/u_cpu_detect.c b/lib/mesa/src/util/u_cpu_detect.c
index c0dd97ba9..0d5f52e68 100644
--- a/lib/mesa/src/util/u_cpu_detect.c
+++ b/lib/mesa/src/util/u_cpu_detect.c
@@ -441,6 +441,7 @@ check_os_arm_support(void)
static void
check_os_mips64_support(void)
{
+#if defined(PIPE_OS_LINUX)
Elf64_auxv_t aux;
int fd;
@@ -456,6 +457,7 @@ check_os_mips64_support(void)
}
close (fd);
}
+#endif /* PIPE_OS_LINUX */
}
#endif /* PIPE_ARCH_MIPS64 */