diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 96e8de6e..c136c0fa 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -43,6 +43,7 @@ in the source distribution for its full text. #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" diff --git a/linux/Platform.c b/linux/Platform.c index 262befa0..7077f08d 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -14,7 +14,6 @@ in the source distribution for its full text. #include #include #include -#include #include #include #include diff --git a/linux/Platform.h b/linux/Platform.h index fe814484..d87ef55a 100644 --- a/linux/Platform.h +++ b/linux/Platform.h @@ -7,6 +7,7 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include #include #include @@ -18,6 +19,12 @@ in the source distribution for its full text. #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[];