Here's a patch that gets getutent() support working on NetBSD (and
possibly some other operating systems). Changes to the existing code
are:
- Not all struct utmp includes a ut_type member. Test for that in
autoconf.
- Use "ut_name" instead of "ut_user". It seems that ut_name is the
older structure name for the username, but Linux provides a #define
for backwards compatibility. Instead of checking for ut_user and/or
ut_name in autoconf, just use ut_name everywhere.
Cheers,
Simon.
--
Simon Burge
<simonb(_at_)wasabisystems(_dot_)com>
NetBSD Development, Support and Service: http://www.wasabisystems.com/
cvs.diff
Description: Text document
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers