summaryrefslogtreecommitdiffstats
path: root/src/rccdb4.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rccdb4.h')
-rw-r--r--src/rccdb4.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rccdb4.h b/src/rccdb4.h
index 33457ef..1d5072b 100644
--- a/src/rccdb4.h
+++ b/src/rccdb4.h
@@ -1,12 +1,19 @@
#ifndef _RCC_DB4_H
#define _RCC_DB4_H
-#include <db.h>
+#include "../config.h"
+
+#ifdef HAVE_DB_H
+# include <db.h>
+#endif /* HAVE_DB_H */
+
#include "rccstring.h"
struct db4_context_t {
+#ifdef HAVE_DB_H
DB_ENV *dbe;
DB *db;
+#endif /* HAVE_DB_H */
rcc_db4_flags flags;
};