summaryrefslogtreecommitdiff
path: root/src/who.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/who.c')
-rw-r--r--src/who.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/who.c b/src/who.c
index 211b08fb7..db3af6e18 100644
--- a/src/who.c
+++ b/src/who.c
@@ -320,7 +320,9 @@ print_user (const STRUCT_UTMP *utmp_ent, time_t boottime)
char mesg;
char idlestr[IDLESTR_LEN + 1];
static char *hoststr;
+#if HAVE_UT_HOST
static size_t hostlen;
+#endif
#define DEV_DIR_WITH_TRAILING_SLASH "/dev/"
#define DEV_DIR_LEN (sizeof (DEV_DIR_WITH_TRAILING_SLASH) - 1)