diff options
Diffstat (limited to 'login/setutent_r.c')
-rw-r--r-- | login/setutent_r.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/login/setutent_r.c b/login/setutent_r.c index 715101d..4b980cf 100644 --- a/login/setutent_r.c +++ b/login/setutent_r.c @@ -52,7 +52,9 @@ setutent_r (struct utmp_data *utmp_data) /* Remember we are at beginning of file. */ utmp_data->loc_utmp = 0; - utmp_data->ubuf.ut_type = -1; +#if _HAVE_UT_TYPE - 0 + utmp_data->ubuf.ut_type = UT_UNKNOWN; +#endif } |