X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=onak-conf.c;h=c30260fd6318cbb2d47d5792fe34a8adbf9f0943;hb=37801dca09e004c214604ae66323a628e100258d;hp=5a4400315551694d19eadc6c104223dcada44526;hpb=adc800dbc424a1e246dd4a82a0c2e88eeda25531;p=onak.git diff --git a/onak-conf.c b/onak-conf.c index 5a44003..c30260f 100644 --- a/onak-conf.c +++ b/onak-conf.c @@ -15,21 +15,22 @@ * You should have received a copy of the GNU General Public License along with * this program. If not, see . */ - -#include "config.h" - #include #include #include #include #include +#include "build-config.h" + #include "cleankey.h" #include "ll.h" #include "log.h" #include "onak-conf.h" +#ifdef DBINIT extern struct onak_dbctx *DBINIT(struct onak_db_config *dbcfg, bool readonly); +#endif /* * config - Runtime configuration for onak. @@ -51,7 +52,11 @@ struct onak_config config = { .backends = NULL, .backends_dir = NULL, +#ifdef DBINIT .dbinit = DBINIT, +#else + .dbinit = NULL, +#endif .clean_policies = ONAK_CLEAN_CHECK_SIGHASH,