gallium: fix ddebug on windows

By including the proper headers for getpid and for mkdir.

Fixes: 6ff0c6f4eb
       ("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>
This commit is contained in:
Dylan Baker 2018-04-18 10:21:14 -07:00
parent 17f49950da
commit 2877b6555c

View file

@ -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