gallium/util: add missing include
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 16 Jun 2020 09:18:34 +0000 (11:18 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 20 Jun 2020 06:51:54 +0000 (06:51 +0000)
This source-file uses PIPE_OS_WINDOWS to enable the Windows
functionality. But witout including p_config.h, this pre-processor
symbol won't be defined at all.

Let's fix this by adding the missing include, enabling stack-traces on
Windows.

Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5497>

src/gallium/auxiliary/util/u_debug_stack.c

index 44581e0a3fba8d49e9d12d3c8051ec80f2f53f6d..e16123b90870755228560e823e462f77b72314b6 100644 (file)
@@ -35,6 +35,7 @@
 #include "util/u_debug.h"
 #include "u_debug_symbol.h"
 #include "u_debug_stack.h"
+#include "pipe/p_config.h"
 
 #if defined(HAVE_LIBUNWIND)