mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Rework DB_VERSION kludging
This commit is contained in:
parent
2a4d69d70e
commit
dcee0a76d4
1 changed files with 13 additions and 11 deletions
|
|
@ -28,23 +28,25 @@
|
|||
|
||||
#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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue