Package: gconf / 3.2.6-6

25_gconf-path-max-hurd.patch Patch series | download
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
--- a/backends/markup-tree.c
+++ b/backends/markup-tree.c
@@ -71,6 +71,11 @@
 }
 #endif
 
+/* PATH_MAX is not defined in limits.h on some platforms */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 typedef struct
 {
   char       *locale;
--- a/backends/xml-dir.c
+++ b/backends/xml-dir.c
@@ -36,6 +36,11 @@
 
 #include "gconf/gconf-internals.h"
 
+/* PATH_MAX is not defined in limits.h on some platforms */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 /* This makes hash table safer when debugging */
 #ifndef GCONF_ENABLE_DEBUG
 #define safe_g_hash_table_insert g_hash_table_insert