From e45dc931362b90c18b31b23ee1a82e721dbdc38e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 28 Dec 2019 22:00:57 +0100 Subject: [PATCH] loader: #define PATH_MAX when undefined (eg. Hurd) Reviewed-by: Matt Turner Signed-off-by: Samuel Thibault Tested-by: Marge Bot Part-of: --- src/loader/loader.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.30.2