Browse Source

Add a sneaky backwards compat hack from Michael Shmulevich

Eric Andersen 24 years ago
parent
commit
bb84a07a88
1 changed files with 1 additions and 0 deletions
  1. 1 0
      include/utmp.h

+ 1 - 0
include/utmp.h

@@ -30,6 +30,7 @@ struct utmp
   char    ut_line[UT_LINESIZE];    /* devicename of tty -"/dev/", null-term */
   char    ut_id[2];                /* abbrev. ttyname, as 01, s1 etc. */
   time_t  ut_time;                 /* login time */
+#define ut_name ut_user                /* Backwards compatibility hack  */
   char    ut_user[UT_NAMESIZE];    /* username, not null-term */
   char    ut_host[UT_HOSTSIZE];    /* hostname for remote login... */
   long    ut_addr;                 /* IP addr of remote host */