]> git.sur5r.net Git - openldap/commitdiff
Rework DB_VERSION kludging
authorKurt Zeilenga <kurt@openldap.org>
Thu, 25 May 2000 23:14:53 +0000 (23:14 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 25 May 2000 23:14:53 +0000 (23:14 +0000)
include/ldbm.h

index e57fa341c65bb5886b027128cee8e8569b2716a8..4fd6f0ba39f3c651e2501d76d5203279903b09cd 100644 (file)
 
 #ifdef HAVE_DB_185_H
 #      include <db_185.h>
-#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 <db1/db.h>
 #      else
 #              include <db.h>
 #      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