[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to tell it's Apache 2.2 source on Win32

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-06-12 16:24:07 CEST

On 6/12/06, D.J. Heap <djheap@gmail.com> wrote:
> On 6/12/06, Garrett Rooney <rooneg@electricjellyfish.net> wrote:
> > On 6/10/06, D.J. Heap <djheap@gmail.com> wrote:
> > > I'm wondering if anyone knows a good way to tell an Apache 2.0 source
> > > directory from an Apache 2.2 one. I don't see anything that is
> > > obviously a version indicator and we need to be able to tell the
> > > difference for the Win32 build/test system (for dll names in the tests
> > > and to skip including the gen_uri_delims project which was folded into
> > > apr-util (I think) in 2.2).
> > >
> > > The LAYOUT file may be a possibility, but does anyone know of
> > > something more definitive?
> >
> > How about looking inside of include/ap_mmn.h? That's how apache
> > modules figure out what version of httpd they're running in...
> >
> > -garrett
> >
>
>
> That sounds promising -- MODULE_MAGIC_NUMBER_MAJOR?

If you care about binary compat that's what you use, but if you just
want to tell the difference between 2.0 and 2.2 you can look at
MODULE_MAGIC_COOKIE.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 12 16:24:41 2006

This is an archived mail posted to the Subversion Dev mailing list.