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

zsh 3.1.4 build problem on HP-UX 10.20



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



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