aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/0003-fix-hurd-build.patch
blob: 8e779272b8f13532337edcee836b647f7cc8eab8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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[];

© 2014-2024 Faster IT GmbH | imprint | privacy policy