Reported-by: Thomas Schwinge <thomas@codesourcery.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
#define IUTF8 0040000
#endif
+/*
+ * Fallback for MAXHOSTNAMELEN
+ */
+#ifndef MAXHOSTNAMELEN
+# ifdef HOST_NAME_MAX
+# define MAXHOSTNAMELEN HOST_NAME_MAX
+# else
+# define MAXHOSTNAMELEN 64
+# endif
+#endif
+
/*
* Constant strings for usage() functions. For more info see
* Documentation/howto-usage-function.txt and sys-utils/arch.c
#define DEF_EOL 0
#define DEF_SWITCH 0 /* default switch char */
-#ifndef MAXHOSTNAMELEN
-# ifdef HOST_NAME_MAX
-# define MAXHOSTNAMELEN HOST_NAME_MAX
-# else
-# define MAXHOSTNAMELEN 64
-# endif /* HOST_NAME_MAX */
-#endif /* MAXHOSTNAMELEN */
-
/*
* When multiple baud rates are specified on the command line, the first one
* we will try is the first one specified.
#define IGNOREUSER "sleeper"
#define WRITE_TIME_OUT 300 /* in seconds */
-#ifndef MAXHOSTNAMELEN
-# ifdef HOST_NAME_MAX
-# define MAXHOSTNAMELEN HOST_NAME_MAX
-# else
-# define MAXHOSTNAMELEN 64
-# endif
-#endif
-
/* Function prototypes */
char *makemsg(char *fname, size_t *mbufsize, int print_banner);
static void usage(FILE *out);