mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 07:58:16 +02:00
ddebug: don't use fmemopen on non-Linux OS
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97140 Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
c88b309fd5
commit
840353059a
1 changed files with 5 additions and 0 deletions
|
|
@ -930,6 +930,7 @@ PIPE_THREAD_ROUTINE(dd_thread_pipelined_hang_detect, input)
|
|||
static char *
|
||||
dd_get_driver_shader_log(struct dd_context *dctx)
|
||||
{
|
||||
#if defined(PIPE_OS_LINUX)
|
||||
FILE *f;
|
||||
char *buf;
|
||||
int written_bytes;
|
||||
|
|
@ -966,6 +967,10 @@ dd_get_driver_shader_log(struct dd_context *dctx)
|
|||
}
|
||||
|
||||
return buf;
|
||||
#else
|
||||
/* Return an empty string. */
|
||||
return (char*)calloc(1, 4);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue