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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user