[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-workers] patch for getutent() support on non-Linux

From: Simon Burge
Subject: [Nmh-workers] patch for getutent() support on non-Linux
Date: Thu, 14 Oct 2004 21:26:27 +1000
User-agent: Mutt/

Here's a patch that gets getutent() support working on NetBSD (and
possibly some other operating systems).  Changes to the existing code

 - Not all struct utmp includes a ut_type member.  Test for that in

 - 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.

Simon Burge                                   <address@hidden>
NetBSD Development, Support and Service:   http://www.wasabisystems.com/

Attachment: cvs.diff
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]