Преглед на файлове

Add a sneaky backwards compat hack from Michael Shmulevich

Eric Andersen преди 24 години
родител
ревизия
bb84a07a88
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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 */