X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=onak-conf.c;h=c30260fd6318cbb2d47d5792fe34a8adbf9f0943;hp=5a4400315551694d19eadc6c104223dcada44526;hb=a799cc2909f47d918d1ec7171a9edba28a9f5136;hpb=94422621d7c1300ae7001d13590570f9d4ad2a07 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,