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);
|