summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-04-18 10:21:14 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-05-17 11:06:01 -0700
commite7c76ec58dde2b024404e82d06e4142cab40194d (patch)
tree7c7a4c6077541f4dcb56ea0f69a96be097a4c645
parent35ce99dc01804f859b2ceb29eb46d5328674b74a (diff)
gallium: fix ddebug on windows
by including the proper headers for getpid and for mkdir.
-rw-r--r--src/gallium/auxiliary/driver_ddebug/dd_util.h6
-rw-r--r--src/gallium/auxiliary/meson.build6
2 files changed, 11 insertions, 1 deletions
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
diff --git a/src/gallium/auxiliary/meson.build b/src/gallium/auxiliary/meson.build
index 92cfb8f7af..48f3ef9b8e 100644
--- a/src/gallium/auxiliary/meson.build
+++ b/src/gallium/auxiliary/meson.build
@@ -106,6 +106,12 @@ files_libgallium = files(
'driver_trace/tr_screen.h',
'driver_trace/tr_texture.c',
'driver_trace/tr_texture.h',
+ 'driver_ddebug/dd_context.c',
+ 'driver_ddebug/dd_draw.c',
+ 'driver_ddebug/dd_pipe.h',
+ 'driver_ddebug/dd_public.h',
+ 'driver_ddebug/dd_screen.c',
+ 'driver_ddebug/dd_util.h',
'hud/font.c',
'hud/font.h',
'hud/hud_context.c',