From 2877b6555c51e896afbc9b8b46ba62a076ccbbc6 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 18 Apr 2018 10:21:14 -0700 Subject: gallium: fix ddebug on windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By including the proper headers for getpid and for mkdir. Fixes: 6ff0c6f4ebcb87ea6c6fe5a4ba90b548f666067d ("gallium: move ddebug, noop, rbug, trace to auxiliary to improve build times") Signed-off-by: Dylan Baker Reviewed-by: Marek Olšák --- src/gallium/auxiliary/driver_ddebug/dd_util.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/driver_ddebug') diff --git a/src/gallium/auxiliary/driver_ddebug/dd_util.h b/src/gallium/auxiliary/driver_ddebug/dd_util.h index 8953e34d588..bcf026f2ef9 100644 --- a/src/gallium/auxiliary/driver_ddebug/dd_util.h +++ b/src/gallium/auxiliary/driver_ddebug/dd_util.h @@ -37,9 +37,13 @@ #include "util/u_debug.h" #include "pipe/p_config.h" -#ifdef PIPE_OS_UNIX +#if defined(PIPE_OS_UNIX) #include #include +#elif defined(PIPE_OS_WINDOWS) +#include +#include +#define mkdir(dir, mode) _mkdir(dir) #endif -- cgit v1.2.3