commit ecfe8794dc705d5ceaf8202c7cab73f3457d4d48 (HEAD -> fix-hurd-build, gh-fit/fix-hurd-build) Author: Daniel Lange Date: Thu Jan 14 13:27:47 2021 +0100 Define PATH_MAX for GNU/hurd Otherwise fails with "> linux/LinuxProcessList.c:889:20: error: ‘PATH_MAX’ undeclared (first use in this function)" --- a/linux/Platform.c +++ b/linux/Platform.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include --- a/linux/Platform.h +++ b/linux/Platform.h @@ -7,6 +7,7 @@ in the source distribution for its full text. */ +#include #include #include @@ -18,6 +19,12 @@ #include "ProcessLocksScreen.h" #include "SignalsPanel.h" +/* GNU/Hurd does not have PATH_MAX in limits.h */ +#ifndef PATH_MAX + #define PATH_MAX 4096 +#endif + + extern const ProcessField Platform_defaultFields[]; extern const SignalItem Platform_signals[];