From: Dylan Baker Date: Wed, 18 Apr 2018 17:21:14 +0000 (-0700) Subject: gallium: fix ddebug on windows X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2877b6555c51e896afbc9b8b46ba62a076ccbbc6;p=mesa.git gallium: fix ddebug on windows 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 --- 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