[Xastir-dev] Hypothetically speaking...

Derrick J Brashear shadow at dementia.org
Wed Nov 10 13:49:50 EST 2004


On Wed, 10 Nov 2004, Curt, WE7U wrote:

>
> If one were to want to include /usr/include/db.h in some Xastir
> code, that conflicts with our xastir/db.h.  How best to handle that?

rename xastir/db.h

> We could "#include /usr/include/db.h", but that might not work on
> all systems.  "#include <db.h>" pulls in our local file instead of
> the system file.  See the problem?

be aware of the hazards of using berkeley db, namely, that you may find 
headers for one version and the library for another, and they won't 
implement the exact same api.

also, if you want a configure test for db, i can give you the one cyrus 
uses.




More information about the Xastir-dev mailing list