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[]; --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -42,6 +42,7 @@ #include "LinuxProcess.h" #include "Macros.h" #include "Object.h" +#include "Platform.h" // needed for GNU/hurd to get PATH_MAX #include "Process.h" #include "Settings.h" #include "XUtils.h" --- a/linux/SELinuxMeter.c +++ b/linux/SELinuxMeter.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include @@ -35,7 +34,7 @@ return false; } - if ((uint32_t)sfbuf.f_type != (uint32_t)SELINUX_MAGIC) { + if ((uint32_t)sfbuf.f_type != /* SELINUX_MAGIC */ 0xf97cff8cU) { return false; }