From 91cc6fcbb050423823ff4262cf860a34d20f504e Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 27 Feb 2019 15:08:56 +0000 Subject: [PATCH] util: #define PATH_MAX when undefined (eg. Hurd) Cc: Timo Aaltonen Cc: James Clarke Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- src/util/xmlconfig.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2