Module: Mesa Branch: master Commit: 840353059a35453e8a960673474e8a37d6f1a97a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=840353059a35453e8a960673474e8a37d6f1a97a
Author: Marek Olšák <[email protected]> Date: Sat Jul 30 23:54:06 2016 +0200 ddebug: don't use fmemopen on non-Linux OS Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97140 Reviewed-by: Nicolai Hähnle <[email protected]> --- src/gallium/drivers/ddebug/dd_draw.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c index d3c4e7f..517e525 100644 --- a/src/gallium/drivers/ddebug/dd_draw.c +++ b/src/gallium/drivers/ddebug/dd_draw.c @@ -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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
