This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: DB revisited
- To: Matt McLean <keys@yikes.com>
- Subject: Re: DB revisited
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 02 Sep 1998 07:37:40 +0200
- Cc: Dan Jacobowitz <drow@false.org>, libc-alpha@cygnus.com
- Mail-Copies-To: never
- References: <Pine.BSF.3.96.980901185039.24695A-100000@brio.yikes.com>
>>>>> Matt McLean writes:
> On Tue, 1 Sep 1998, Dan Jacobowitz wrote:
>> Also... is it at all worth considering leaving db_185.h named db.h and
>> calling db.h db2.h? The interfaces are close enough to confuse the
>> heck out of many configuration systems.
> well.. configure should assume that if db_185.h exists in /usr/include,
> that db.h is DB v2. right?
<db.h> defines
#define DB_VERSION_MAJOR 2
#define DB_VERSION_MINOR 4
#define DB_VERSION_PATCH 14
Those should be used to check for the version. If DB_VERSION_* is not
defined, you've got version 1.
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de