mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 01:10:44 +02:00
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:
parent
26ba29f75b
commit
33e0330baf
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue