The hostname variable will be used later, export it.
#define MAX_SIGNAL 256
#endif
+/* Maximum host name length */
+#ifndef MAX_HOSTNAME_LEN
+#define MAX_HOSTNAME_LEN 32
+#endif
+
#endif /* _COMMON_DEFAULTS_H */
extern const int one;
extern const struct linger nolinger;
extern int stopping; /* non zero means stopping in progress */
+extern char hostname[MAX_HOSTNAME_LEN];
#endif /* _TYPES_GLOBAL_H */
const int one = 1;
const struct linger nolinger = { .l_onoff = 1, .l_linger = 0 };
-/*
- * Syslog facilities and levels. Conforming to RFC3164.
- */
-
-#define MAX_HOSTNAME_LEN 32
-static char hostname[MAX_HOSTNAME_LEN] = "";
+char hostname[MAX_HOSTNAME_LEN] = "";
/*********************************************************************/