From: Kurt Zeilenga Date: Thu, 25 May 2000 23:14:53 +0000 (+0000) Subject: Rework DB_VERSION kludging X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2860 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dcee0a76d4fa7836cf75b62649b57890738b264a;p=openldap Rework DB_VERSION kludging --- diff --git a/include/ldbm.h b/include/ldbm.h index e57fa341c6..4fd6f0ba39 100644 --- a/include/ldbm.h +++ b/include/ldbm.h @@ -28,23 +28,25 @@ #ifdef HAVE_DB_185_H # include -#ifndef DB_VERSION_MAJOR -# define DB_VERSION_MAJOR 1 -#endif -#ifndef DB_VERSION_MINOR -# define DB_VERSION_MINOR 85 -#endif #else # ifdef HAVE_DB1_DB_H # include # else # include # endif -# if DB_VERSION_MAJOR >= 2 -# define R_NOOVERWRITE DB_NOOVERWRITE -# ifndef DEFAULT_DB_PAGE_SIZE -# define DEFAULT_DB_PAGE_SIZE 4096 -# endif +#endif + +#ifndef DB_VERSION_MAJOR +# define DB_VERSION_MAJOR 1 +#endif +#ifndef DB_VERSION_MINOR +# define DB_VERSION_MINOR 85 +#endif + +#if DB_VERSION_MAJOR >= 2 +# define R_NOOVERWRITE DB_NOOVERWRITE +# ifndef DEFAULT_DB_PAGE_SIZE +# define DEFAULT_DB_PAGE_SIZE 4096 # endif #endif