summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/pipe-loader
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2015-11-21 23:03:20 +0000
committerJose Fonseca <[email protected]>2015-11-21 23:03:20 +0000
commit4befd82a649e926e64bc2c17cf362a84d5be42e6 (patch)
tree19ee5784a9a3a958a68f30a88b135644f91ecdad /src/gallium/auxiliary/pipe-loader
parent02afbd247620bd51a5b1661ced9b01a865136484 (diff)
pipe-loader: Fix PATH_MAX define on MSVC.
Diffstat (limited to 'src/gallium/auxiliary/pipe-loader')
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.c b/src/gallium/auxiliary/pipe-loader/pipe_loader.c
index 40df2167797..aef996c4617 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.c
@@ -32,6 +32,11 @@
#include "util/u_string.h"
#include "util/u_dl.h"
+#ifdef _MSC_VER
+#include <stdlib.h>
+#define PATH_MAX _MAX_PATH
+#endif
+
#define MODULE_PREFIX "pipe_"
static int (*backends[])(struct pipe_loader_device **, int) = {