diff options
author | Jose Fonseca <[email protected]> | 2015-11-21 23:03:20 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-01-22 16:02:18 +0000 |
commit | ee5d530d338b451cdc37fdaf0a54ec958fcf605e (patch) | |
tree | c5f7e4fa5feca7be32a63beb21cf254d105e961d /src | |
parent | 27d2dbd44718fdf875eae08890ec2a32a71a0ca1 (diff) |
pipe-loader: Fix PATH_MAX define on MSVC.
(cherry picked from commit 4befd82a649e926e64bc2c17cf362a84d5be42e6)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93628
Nominted-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/pipe-loader/pipe_loader.c | 5 |
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) = { |