loader: #define PATH_MAX when undefined (eg. Hurd)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 28 Dec 2019 21:00:57 +0000 (22:00 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jan 2020 22:10:29 +0000 (22:10 +0000)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3228>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3228>

src/loader/loader.c

index 171b67f47524ca654b2bcc0563d114b0ef3d9e53..668e6d5184b09ecd1e09e757b746938a6c74b608 100644 (file)
 #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) {