summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-04-18 10:21:14 -0700
committerDylan Baker <[email protected]>2018-08-01 12:50:25 -0700
commit2877b6555c51e896afbc9b8b46ba62a076ccbbc6 (patch)
tree27c31ee55cc71e65cfba0a86e74fcb1a531b8fad
parent17f49950da91137366910183f616d15b8bbf580c (diff)
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/auxiliary/driver_ddebug/dd_util.h6
1 files changed, 5 insertions, 1 deletions
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 <unistd.h>
#include <sys/stat.h>
+#elif defined(PIPE_OS_WINDOWS)
+#include <direct.h>
+#include <process.h>
+#define mkdir(dir, mode) _mkdir(dir)
#endif