Subject: Re: Fix for X11R6-pl3 xterm +ut and XTerm*utmpInhibit for FreeBSD & NetBSD
To: Julian H Stacey <Julian.H.Stacey@regent.e-technik.tu-muenchen.de>
From: Mark Treacy <mark@labtam.oz.au>
List: current-users
Date: 08/24/1994 02:52:02
> + #if BSD_NET2 || __FreeBSD__ || __NetBSD__
#if defined(BSD) && BSD > 43
would be preferable here (i.e. the utmp location change came after tahoe
and was present in reno and later bsd releases).
> + /* For FreeBSD 1.1.5(RELEASE) & NetBSD-current@94.08.12: /var/run/utmp */
> + #define UTMP_FILENAME _PATH_UTMP
> + #endif
> +
> #ifndef UTMP_FILENAME
> #ifdef UTMP_FILE
> #define UTMP_FILENAME UTMP_FILE
But, since the patch relies on _PATH_UTMP anyway, it is best to omit
the BSD_NET2 || ... patch entirely and add after the above section
something like
#else
+ #ifdef _PATH_UTMP
+ #define UTMP_FILENAME _PATH_UTMP
+ #endif
#define UTMP_FILENAME "/etc/utmp"
- Mark.
------------------------------------------------------------------------------