diff options
author | Jim Meyering <jim@meyering.net> | 1999-04-24 21:29:22 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-04-24 21:29:22 +0000 |
commit | f90a5e94b846554580d8bd02026c0453398fabe8 (patch) | |
tree | f6ecf746cae34db404872cb243a55ecc52bda38c | |
parent | 88fc9ef9463c748cd17eb4adfac334d7ed1045ff (diff) | |
download | coreutils-f90a5e94b846554580d8bd02026c0453398fabe8.tar.xz |
(print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'.
-rw-r--r-- | src/who.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |