From caca361377775707d4000f29d2960c7fbffd17da Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 8 Dec 2018 15:41:19 +0100 Subject: [PATCH] const.h: default value for PATH_MAX Hurd has no PATH_MAX value, so the build for Debian hurd failed: https://buildd.debian.org/status/fetch.php?pkg=grafx2&arch=hurd-i386&ver=2.5%2Bgit20181014-2&stamp=1544121801&raw=0 --- src/const.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/const.h b/src/const.h index 216285cc..93e51270 100644 --- a/src/const.h +++ b/src/const.h @@ -42,7 +42,11 @@ #ifdef _MSC_VER #include #endif +#ifdef MAX_PATH #define PATH_MAX MAX_PATH +#else +#define PATH_MAX 4096 +#endif #endif #ifndef M_2PI