diff options
author | Daniel Lange <DLange@git.local> | 2021-01-14 13:36:56 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-01-14 19:45:55 +0100 |
commit | 048ad2ff54017710af65007cb7f8ab1bd39e5d5f (patch) | |
tree | 84fe35728558611709d3fbaf9eab644be4a05048 /debian/patches/0003-fix-hurd-build.patch | |
parent | 9c95b72c082f325f16001e89c3362c1d3cd0cf4c (diff) | |
download | debian_htop-048ad2ff54017710af65007cb7f8ab1bd39e5d5f.tar.gz debian_htop-048ad2ff54017710af65007cb7f8ab1bd39e5d5f.tar.bz2 debian_htop-048ad2ff54017710af65007cb7f8ab1bd39e5d5f.zip |
Prepare a set of patches for an upcoming 3.0.5-2
Diffstat (limited to 'debian/patches/0003-fix-hurd-build.patch')
-rw-r--r-- | debian/patches/0003-fix-hurd-build.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/0003-fix-hurd-build.patch b/debian/patches/0003-fix-hurd-build.patch new file mode 100644 index 0000000..8e77927 --- /dev/null +++ b/debian/patches/0003-fix-hurd-build.patch @@ -0,0 +1,42 @@ +commit ecfe8794dc705d5ceaf8202c7cab73f3457d4d48 (HEAD -> fix-hurd-build, gh-fit/fix-hurd-build) +Author: Daniel Lange <DLange@git.local> +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 <dirent.h> + #include <fcntl.h> + #include <inttypes.h> +-#include <limits.h> + #include <math.h> + #include <stdint.h> + #include <stdio.h> +--- a/linux/Platform.h ++++ b/linux/Platform.h +@@ -7,6 +7,7 @@ + in the source distribution for its full text. + */ + ++#include <limits.h> + #include <stdbool.h> + #include <sys/types.h> + +@@ -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[]; |