diff --git a/lib/isccfg/include/isccfg/cfg.h b/lib/isccfg/include/isccfg/cfg.h index 0b476879a9..8911c27254 100644 --- a/lib/isccfg/include/isccfg/cfg.h +++ b/lib/isccfg/include/isccfg/cfg.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: cfg.h,v 1.26 2001/07/23 00:23:30 gson Exp $ */ +/* $Id: cfg.h,v 1.27 2001/07/23 05:00:44 mayer Exp $ */ #ifndef ISCCFG_CFG_H #define ISCCFG_CFG_H 1 @@ -401,9 +401,9 @@ cfg_obj_log(cfg_obj_t *obj, isc_log_t *lctx, int level, const char *fmt, ...) /* * Configuration object types. */ -extern cfg_type_t cfg_type_namedconf; /* A complete named.conf file. */ -extern cfg_type_t cfg_type_rndcconf; /* A complete rndc.conf file. */ -extern cfg_type_t cfg_type_keyref; /* A key reference, used as an ACL element */ +LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_namedconf; /* A complete named.conf file. */ +LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_rndcconf; /* A complete rndc.conf file. */ +LIBISCCFG_EXTERNAL_DATA extern cfg_type_t cfg_type_keyref; /* A key reference, used as an ACL element */ ISC_LANG_ENDDECLS diff --git a/lib/isccfg/parser.c b/lib/isccfg/parser.c index ff3ac1c506..be2d548eb3 100644 --- a/lib/isccfg/parser.c +++ b/lib/isccfg/parser.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: parser.c,v 1.63 2001/07/23 00:23:29 gson Exp $ */ +/* $Id: parser.c,v 1.64 2001/07/23 05:00:43 mayer Exp $ */ #include @@ -970,7 +970,7 @@ namedconf_clausesets[] = { NULL }; -cfg_type_t cfg_type_namedconf = { +LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_namedconf = { "namedconf", parse_mapbody, print_mapbody, &cfg_rep_map, namedconf_clausesets }; @@ -1999,7 +1999,7 @@ static cfg_type_t cfg_type_notifytype = { static keyword_type_t key_kw = { "key", &cfg_type_astring }; -cfg_type_t cfg_type_keyref = { +LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_keyref = { "keyref", parse_keyvalue, print_keyvalue, &cfg_rep_string, &key_kw }; @@ -3471,7 +3471,7 @@ rndcconf_clausesets[] = { NULL }; -cfg_type_t cfg_type_rndcconf = { +LIBISCCFG_EXTERNAL_DATA cfg_type_t cfg_type_rndcconf = { "rndcconf", parse_mapbody, print_mapbody, &cfg_rep_map, rndcconf_clausesets };