Mesa (master): gallium: fix ddebug on windows
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 1 20:06:35 UTC 2018
Module: Mesa
Branch: master
Commit: 2877b6555c51e896afbc9b8b46ba62a076ccbbc6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2877b6555c51e896afbc9b8b46ba62a076ccbbc6
Author: Dylan Baker <dylan at pnwbakers.com>
Date: Wed Apr 18 10:21:14 2018 -0700
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 <dylan.c.baker at intel.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/auxiliary/driver_ddebug/dd_util.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/driver_ddebug/dd_util.h b/src/gallium/auxiliary/driver_ddebug/dd_util.h
index 8953e34d58..bcf026f2ef 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
More information about the mesa-commit
mailing list