File: build-hurd.patch

package info (click to toggle)
gfarm 2.7.20%2Bdfsg-1.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,348 kB
  • sloc: ansic: 188,252; sh: 43,469; cpp: 9,442; java: 6,866; makefile: 3,520; perl: 2,412; python: 1,449; ruby: 965; php: 807; sql: 173; xml: 51; csh: 2
file content (50 lines) | stat: -rw-r--r-- 1,150 bytes parent folder | download | duplicates (4)
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
43
44
45
46
47
48
49
50
Last-Update: 2015-06-25
Forwarded: https://sourceforge.net/p/gfarm/tickets/805/
Author: NIIBE Yutaka <gniibe@fsij.org>
Reviewed-By: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: Workaround for no [MAXHOSTNAMELEN, MAXPATHLEN, PATH_MAX] definitions (on hurd-i386)

--- a/lib/libgfarm/gfarm/host.c
+++ b/lib/libgfarm/gfarm/host.c
@@ -49,8 +49,12 @@
 #endif /* __KERNEL__ */
 
 #define staticp	(gfarm_ctxp->host_static)
 
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 256
+#endif
+
 struct known_network {
 	struct known_network *next;
 	struct gfarm_hostspec *network;
 };
--- a/include/gfarm/gfarm_misc.h
+++ b/include/gfarm/gfarm_misc.h
@@ -1,8 +1,12 @@
 /*
  * $Id$
  */
 
+#if !defined(PATH_MAX)
+#define PATH_MAX 1024
+#endif
+
 #include <gfarm/gfarm_config.h>
 
 /*
  * basic types
--- a/server/gfmd/db_journal.c
+++ b/server/gfmd/db_journal.c
@@ -50,8 +50,11 @@
 	journal_file_writer(self_jf))
 
 #define NON_NULL_STR(s) ((s) ? (s) : "")
 
+#if !defined(MAXPATHLEN)
+#define MAXPATHLEN 1024
+#endif
 
 static struct journal_file	*self_jf;
 static const struct db_ops	*journal_apply_ops;
 static void			(*db_journal_fail_store_op)(void);