From: Eric Engestrom Date: Wed, 27 Feb 2019 15:08:56 +0000 (+0000) Subject: util: #define PATH_MAX when undefined (eg. Hurd) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=91cc6fcbb050423823ff4262cf860a34d20f504e;p=mesa.git util: #define PATH_MAX when undefined (eg. Hurd) Cc: Timo Aaltonen Cc: James Clarke Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- diff --git a/src/util/xmlconfig.c b/src/util/xmlconfig.c index 5907c68012e..5d218eeb927 100644 --- a/src/util/xmlconfig.c +++ b/src/util/xmlconfig.c @@ -42,6 +42,10 @@ #include "xmlconfig.h" #include "u_process.h" +/* For systems like Hurd */ +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif /** \brief Find an option in an option cache with the name as key */ static uint32_t