Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Patches for zsh on Mac OS X 10.4



Toby Peterson wrote:
> utmpx-apple.diff: We now include utmpx, but the struct has no ut_name  
> field. I suspect this issue may occur on other platforms... Solaris 9  
> and Fedora Core 2 didn't appear to have the field either.

Yes, it looks like ut_user is standard in struct utmpx.  Solaris even
has ut_user in struct utmp, but #define's ut_name for
compatibility---this might be a clue to how the utmpx version currently
works on Solaris.

On the main line I'll commit this as follows:

/*
 * In utmpx, the ut_name field is replaced by ut_user.
 * Howver, on some systems ut_name may already be defined this
 * way for the purposes of utmp.
 */
# ifndef ut_name
#  define ut_name ut_user
# endif

but I don't dare try that out on the 4.2 branch.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author