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:
Marek Olšák 2016-07-30 23:54:06 +02:00
parent c88b309fd5
commit 840353059a
1 changed files with 5 additions and 0 deletions

View File

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