]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
#ifdef HAVE_GEOIP
authorMark Andrews <marka@isc.org>
Fri, 1 Mar 2013 10:33:49 +0000 (21:33 +1100)
committerMark Andrews <marka@isc.org>
Fri, 1 Mar 2013 10:33:49 +0000 (21:33 +1100)
lib/isccfg/aclconf.c
lib/isccfg/include/isccfg/aclconf.h

index 1626d55f2f8634756091182424447a6c330f76f0..bcd50e01732fb37c023771bac3cd6239fbe3b479 100644 (file)
@@ -58,7 +58,9 @@ cfg_aclconfctx_create(isc_mem_t *mctx, cfg_aclconfctx_t **ret) {
        isc_mem_attach(mctx, &actx->mctx);
        ISC_LIST_INIT(actx->named_acl_cache);
 
+#ifdef HAVE_GEOIP
        actx->geoip = NULL;
+#endif
 
        *ret = actx;
        return (ISC_R_SUCCESS);
index 5ff753dd9e6b98316bf974fcc2293e53eaa3e9cf..ba4e828fd1118d6fc142036dbf4fcd226255a994 100644 (file)
 
 #include <isccfg/cfg.h>
 
+#ifdef HAVE_GEOIP
 #include <dns/geoip.h>
+#endif
 #include <dns/types.h>
 
 typedef struct cfg_aclconfctx {
        ISC_LIST(dns_acl_t) named_acl_cache;
        isc_mem_t *mctx;
+#ifdef HAVE_GEOIP
        dns_geoip_databases_t *geoip;
+#endif
        isc_refcount_t references;
 } cfg_aclconfctx_t;