diff options
author | Gerrit Pape <pape@smarden.org> | 2007-06-26 08:31:52 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2007-08-27 14:14:34 +0000 |
commit | f2ae55e8662d9a71e127da637584dff415c07e9f (patch) | |
tree | df0472b792a18ec83e0ecbe8f79ee41356a24762 /src | |
parent | 6dd65f1fe3021ba4ddbb3e374dc24c8acbd24ddf (diff) | |
download | runit-f2ae55e8662d9a71e127da637584dff415c07e9f.tar.gz runit-f2ae55e8662d9a71e127da637584dff415c07e9f.tar.xz runit-f2ae55e8662d9a71e127da637584dff415c07e9f.zip |
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 (limited to 'src')
-rw-r--r-- | src/uw_tmp.h1 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/uw_tmp.h1 b/src/uw_tmp.h1 index 57231fb..2d5e994 100644 --- 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; |