From: Samuel Thibault Date: Sat, 28 Dec 2019 21:00:57 +0000 (+0100) Subject: loader: #define PATH_MAX when undefined (eg. Hurd) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e45dc931362b90c18b31b23ee1a82e721dbdc38e;p=mesa.git loader: #define PATH_MAX when undefined (eg. Hurd) Reviewed-by: Matt Turner Signed-off-by: Samuel Thibault Tested-by: Marge Bot Part-of: --- 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) {