runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit d4764ec828dde4da6920a7064ce7b8d58faaa3d3
parent 6b42cc8a79aabf47afc3098d9d909065d5e491dc
Author: Gerrit Pape <pape@smarden.org>
Date:   Tue, 26 Jun 2007 08:31:52 +0000

uw_tmp.h1: fallback to UTMP_FILE if _PATH_UTMP is not defined as seen
on AIX 5.2 ML1, AIX 5.3 ML5 (thx Daniel Clark).

Diffstat:
Mpackage/CHANGES | 2++
Msrc/uw_tmp.h1 | 10++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/package/CHANGES b/package/CHANGES @@ -11,6 +11,8 @@ * doc/useinit.html: add instructions on how to use with upstart (thx Lloyd Zusman). * chpst.c: add explicit braces to avoid ambiguous 'else'. + * uw_tmp.h1: fallback to UTMP_FILE if _PATH_UTMP is not defined as seen + on AIX 5.2 ML1, AIX 5.3 ML5 (thx Daniel Clark). 1.7.2 Tue, 21 Nov 2006 15:13:47 +0000 diff --git a/src/uw_tmp.h1 b/src/uw_tmp.h1 @@ -3,7 +3,17 @@ /* sysdep: -utmpx */ +#ifdef _PATH_UTMP #define UW_TMP_UFILE _PATH_UTMP #define UW_TMP_WFILE _PATH_WTMP +#else +/* AIX only has UTMP_FILE */ +#ifdef UTMP_FILE +#define UW_TMP_UFILE UTMP_FILE +#define UW_TMP_WFILE WTMP_FILE +#else +#error neither _PATH_UTMP nor UTMP_FILE defined. +#endif +#endif typedef struct utmp uw_tmp;