* zsh 3.1.4 build problem on HP-UX 10.20
@ 1998-09-29 23:46 Jim Mattson
0 siblings, 0 replies; only message in thread
From: Jim Mattson @ 1998-09-29 23:46 UTC (permalink / raw)
To: zsh-workers
HP-UX 10.20 does not define a ut_xtime macro to get at the seconds in
the ut_tv structure. Maybe this is an HP-UX problem; I don't know.
Surely the utmpx structure is mandated by XPG4.2, but I don't know
about the ut_xtime macro.
Anyway, here's a proposed workaround.
Thanks,
--jim
*** /var/tmp/,RCSt1a25112 Tue Sep 29 16:39:08 1998
--- watch.c Tue Sep 29 16:36:05 1998
***************
*** 88,94
#if !defined(WATCH_STRUCT_UTMP) && defined(HAVE_STRUCT_UTMPX) && defined(REAL_UTMPX_FILE)
# define WATCH_STRUCT_UTMP struct utmpx
# undef ut_time
! # define ut_time ut_xtime
# define WATCH_UTMP_FILE REAL_UTMPX_FILE
# ifdef REAL_WTMPX_FILE
# define WATCH_WTMP_FILE REAL_WTMPX_FILE
--- 88,94 -----
#if !defined(WATCH_STRUCT_UTMP) && defined(HAVE_STRUCT_UTMPX) && defined(REAL_UTMPX_FILE)
# define WATCH_STRUCT_UTMP struct utmpx
# undef ut_time
! # define ut_time ut_tv.tv_sec
# define WATCH_UTMP_FILE REAL_UTMPX_FILE
# ifdef REAL_WTMPX_FILE
# define WATCH_WTMP_FILE REAL_WTMPX_FILE
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-09-29 23:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-29 23:46 zsh 3.1.4 build problem on HP-UX 10.20 Jim Mattson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).