diff options
author | Samuel Thibault <[email protected]> | 2019-12-28 22:00:57 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-22 22:10:29 +0000 |
commit | e45dc931362b90c18b31b23ee1a82e721dbdc38e (patch) | |
tree | 4ee57fb216ca07150c6fadd7dfcfc700eb82fee0 | |
parent | d60b8fd3cbafda64dee5ae3e4960f3887fcc337b (diff) |
loader: #define PATH_MAX when undefined (eg. Hurd)
Reviewed-by: Matt Turner <[email protected]>
Signed-off-by: Samuel Thibault <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3228>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3228>
-rw-r--r-- | src/loader/loader.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c index 171b67f4752..668e6d5184b 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @@ -61,6 +61,11 @@ #define __IS_LOADER #include "pci_id_driver_map.h" +/* For systems like Hurd */ +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + static void default_logger(int level, const char *fmt, ...) { if (level <= _LOADER_WARNING) { |