From: Jim Meyering Date: Sat, 24 Apr 1999 21:29:22 +0000 (+0000) Subject: (print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'. X-Git-Tag: FILEUTILS-4_0g~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f90a5e94b846554580d8bd02026c0453398fabe8;p=thirdparty%2Fcoreutils.git (print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'. --- diff --git a/src/who.c b/src/who.c index e5fd094efe..b2a5995d94 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;