From f90a5e94b846554580d8bd02026c0453398fabe8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 24 Apr 1999 21:29:22 +0000 Subject: (print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'. --- src/who.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/who.c') 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; -- cgit v1.2.3-54-g00ecf