Subject: Re: CVS commit: xsrc/xfree/xc/config/cf
To: None <source-changes@NetBSD.org>
From: Christoph Badura <bad@bsd.de>
List: source-changes
Date: 12/19/2006 23:49:16
On Tue, Dec 19, 2006 at 03:39:31PM -0500, Michael Lorenz wrote:
> On Dec 19, 2006, at 11:11, Izumi Tsutsui wrote:
> >macallan@NetBSD.org wrote:
> >>> /* NetBSD >= 1.5 has setusercontext() */
> >>> #if OSMajorVersion == 1 && OSMinorVersion >= 5 || OSMajorVersion > 1
> >>>+#if !defined(sharkArchitecture)
> >>> #define HasSetUserContext       YES
> >>> #endif
> >>>+#endif
> >>>---
> >>>
> >>>Is this really shark specific?
> >>
> >>Shark needs it, not sure about the others.
> >
> >According to xfree/xc/config/cf/README, HasSetUserContext is
> >a value of boolean for setusercontext(), which should be in libutil.
> >How does it fail with this value? In xdm?
> 
> I couldn't get xdm to link because of unresolved symbols - forgot which 
> exactly, it wasn't setusercontext() though but something else referred 
> in some #ifdef HAS_SETUSERCONTEXT block. That was with 3.1, turns out 
> with -current it just works so I got rid of it.

The XFree code has changed over time to refer to an enhanced API of
setusercontext() related functions under this define.

Compiling without HasSetUserContext #defined disables all the login.conf
processing, which is undesirable.

--chris