mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
#ifdef HAVE_GEOIP
This commit is contained in:
parent
e69e6105b2
commit
f9de007a57
2 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -24,13 +24,17 @@
|
|||
|
||||
#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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue