This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: DB revisited


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]