From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1454 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit on AIX Date: Tue, 26 Jun 2007 10:02:13 +0000 Message-ID: <20070626100213.6401.qmail@1df015f10c84ca.315fe32.mid.smarden.org> References: <5422d5e60706250527i300f4c71ue9f9526b1b45f508@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="f2QGlHpHGjS2mn6Y" X-Trace: sea.gmane.org 1182852118 27174 80.91.229.12 (26 Jun 2007 10:01:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2007 10:01:58 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1691-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jun 26 12:01:57 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1I37ru-0002XF-A1 for gcsg-supervision@gmane.org; Tue, 26 Jun 2007 12:01:54 +0200 Original-Received: (qmail 10304 invoked by uid 76); 26 Jun 2007 10:02:15 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 10299 invoked from network); 26 Jun 2007 10:02:15 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <5422d5e60706250527i300f4c71ue9f9526b1b45f508@mail.gmail.com> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1454 Archived-At: --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 25, 2007 at 08:27:39AM -0400, Daniel Clark wrote: > Yay! - runit seems to be working fine on AIX 5.2 ML1 and AIX 5.3 ML5. > The only required change was to rename some defines in > "compile/uw_tmp.h1": > > -#define UW_TMP_UFILE _PATH_UTMP > -#define UW_TMP_WFILE _PATH_WTMP > +#define UW_TMP_UFILE UTMP_FILE > +#define UW_TMP_WFILE WTMP_FILE Hi Daniel, simply falling back to UTMP_FILE if _PATH_UTMP isn't defined should do it, see the patch below. Thanks, Gerrit. --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=diff 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; --f2QGlHpHGjS2mn6Y--