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: 88b234d7a7 ("gallivm: add basic mips64 support and set mcpu to mips64r5 on ls3a4000")
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15166>
(cherry picked from commit 7d609431d4)
This commit is contained in:
Jonathan Gray 2022-02-25 23:17:32 +11:00 committed by Eric Engestrom
parent f6a5684750
commit 237197ee69
2 changed files with 3 additions and 1 deletions

View file

@ -4000,7 +4000,7 @@
"description": "util: unbreak non-linux mips64 build",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "88b234d7a7cd71fcb4955428010f238ec9530431"
},

View file

@ -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 */