summaryrefslogtreecommitdiff
path: root/src/who.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-04-24 21:29:22 +0000
committerJim Meyering <jim@meyering.net>1999-04-24 21:29:22 +0000
commitf90a5e94b846554580d8bd02026c0453398fabe8 (patch)
treef6ecf746cae34db404872cb243a55ecc52bda38c /src/who.c
parent88fc9ef9463c748cd17eb4adfac334d7ed1045ff (diff)
downloadcoreutils-f90a5e94b846554580d8bd02026c0453398fabe8.tar.xz
(print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'.
Diffstat (limited to 'src/who.c')
-rw-r--r--src/who.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/who.c b/src/who.c
index e5fd094ef..b2a5995d9 100644
--- a/src/who.c
+++ b/src/who.c
@@ -47,6 +47,7 @@
int gethostname ();
char *ttyname ();
+char *canon_host ();
/* The name this program was run with. */
char *program_name;
@@ -173,10 +174,9 @@ print_entry (const STRUCT_UTMP *utmp_ent)
else
printf (" . ");
}
-#ifdef HAVE_UT_HOST
+#if HAVE_UT_HOST
if (utmp_ent->ut_host[0] && do_lookup)
{
- extern char *canon_host ();
char ut_host[sizeof (utmp_ent->ut_host) + 1];
char *host = 0, *display = 0;