Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Patches for zsh on Mac OS X 10.4
- X-seq: zsh-workers 21093
- From: Peter Stephenson <pws@xxxxxxx>
- To: Toby Peterson <toby@xxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: Patches for zsh on Mac OS X 10.4
- Date: Mon, 04 Apr 2005 10:57:46 +0100
- In-reply-to: <B8D4C05A-0D80-48F1-87FE-DAFCFBA69BDC@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <B8D4C05A-0D80-48F1-87FE-DAFCFBA69BDC@xxxxxxxxxxxxxx>
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