asahi: Do not require fopencookie on Android

The android build lies when setting _GNU_SOURCE, presumably to have access to
other functions that Android's libc actually implements.
However, fopencookie is not one of those.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35137>
This commit is contained in:
Alessandro Astone 2025-05-23 22:21:17 +02:00 committed by Marge Bot
parent 26ba29f75b
commit 33e0330baf

View file

@ -1065,7 +1065,7 @@ libagxdecode_writer(void *cookie, const char *buffer, size_t size)
return lib_config.stream_write(buffer, size);
}
#ifdef _GNU_SOURCE
#if defined(_GNU_SOURCE) && !DETECT_OS_ANDROID
static cookie_io_functions_t funcs = {.write = libagxdecode_writer};
#endif
@ -1074,7 +1074,7 @@ static decoder_params lib_params;
void
libagxdecode_init(struct libagxdecode_config *config)
{
#ifdef _GNU_SOURCE
#if defined(_GNU_SOURCE) && !DETECT_OS_ANDROID
lib_config = *config;
agxdecode_dump_stream = fopencookie(NULL, "w", funcs);