gallium: fix ddebug on windows
authorDylan Baker <dylan@pnwbakers.com>
Wed, 18 Apr 2018 17:21:14 +0000 (10:21 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 1 Aug 2018 19:50:25 +0000 (12:50 -0700)
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@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/driver_ddebug/dd_util.h

index 8953e34d58825a29c451e78017774fbe52a888d8..bcf026f2ef9551715e8c80c7df8370bcbc031592 100644 (file)
 #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