Fix the use of struct utmp/utmpx in comsatd.
* am/utmp.m4: Check if struct utmp has ut_user or ut_name members. * comsat/comsat.c [HAVE_UTMPX_H]: Define UTMP as a typedef of struct utmpx. Define ut_user, if necessary. (find_user): Use ut_user instead of (backward-compatible) ut_name.
Showing
2 changed files
with
18 additions
and
7 deletions
-
Please register or sign in to post a comment