[Ace-users] [ace-users] [ace-bugs] Stock build system: OpenBSD and asmsymbols
Johnny Willemsen
jwillemsen at remedy.nl
Sun Oct 28 15:23:09 CDT 2007
Hi,
Thanks, I have added this locally to my tree and commit this later this
week.
Johnny
> -----Original Message-----
> From: Craig Rodrigues [mailto:rodrigc at crodrigues.org]
> Sent: Sunday, October 28, 2007 9:08 PM
> To: Johnny Willemsen
> Subject: Re: [ace-users] [ace-bugs] Stock build system:
> OpenBSD and asmsymbols
>
> On Sat, Oct 13, 2007 at 08:17:10PM +0200, Johnny Willemsen wrote:
> > Hi,
> >
> > > Is there a particular version number symbal that we can check for
> > > here, e.g.,
> > >
> > > #ifdef (_OPENBSD_4_1)
> > > #define ACE_USES_ASM_SYMBOL_IN_DLSYM
> > > #endif
> > >
> > > or something like this to avoid breaking earlier versions
> of OpenBSD?
> >
> > So far as I can find this got changed with OpenBSd 3.6
> >
> > Johnny
>
> If you include <sys/param.h>, you can use the "OpenBSD" preprocessor
> macro to determine the OpenBSD version. This macro gets bumped
> for every new OpenBSD release. See:
>
> http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/param.h
>
> So you want this in config-openbsd.h for OpenBSD 3.6:
>
> #if (OpenBSD >= 200411)
> # define ACE_USES_ASM_SYMBOL_IN_DLSYM
> #endif
>
> or this for OpenBSD 4.1:
>
> #if (OpenBSD >= 200705)
> # define ACE_USES_ASM_SYMBOL_IN_DLSYM
> #endif
>
> --
> Craig Rodrigues
> rodrigc at crodrigues.org
>
More information about the Ace-users
mailing list