diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utmps/utmpx.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/utmps/utmpx.h b/src/include/utmps/utmpx.h index 450d54a..8f6aaa6 100644 --- a/src/include/utmps/utmpx.h +++ b/src/include/utmps/utmpx.h @@ -40,8 +40,6 @@ struct utmpx char _dummy[20] ; } ; -#define ut_name ut_user - #define EMPTY 0 #define BOOT_TIME 2 #define OLD_TIME 4 @@ -72,6 +70,14 @@ extern void logwtmp (char const *, char const *, char const *) ; /* Unused, but some packages require this macro to be present */ #define UTMPX_FILE "/run/utmps/utmp" +/* More old GNU/crap compatibility */ +#define ut_name ut_user +#define ut_xtime ut_tv.tv_sec +#define ut_addr ut_addr_v6[0] +#ifndef _NO_UT_TIME +# define ut_time ut_tv.tv_sec +#endif + #ifdef __cplusplus } #endif |