]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix broken windows build
authorEvan Hunt <each@isc.org>
Fri, 28 Jun 2019 19:45:26 +0000 (12:45 -0700)
committerEvan Hunt <each@isc.org>
Wed, 3 Jul 2019 17:52:51 +0000 (10:52 -0700)
commitf81020a748ee9e3072db3d1e9afbe71acba4973c
treef920dcae3558badea3e22594ced791cae62d5c0e
parent7355529a98ba7116b00d7e6dccd5b60c8ca9bd1c
fix broken windows build

The MSVS C compiler requires every struct to have at least one member.
The dns_geoip_databases_t structure had one set of members for
HAVE_GEOIP and a different set for HAVE_GEOIP2, and none when neither
API is in use.

This commit silences the compiler error by moving the declaration of
dns_geoip_databases_t to types.h as an opaque reference, and commenting
out the contents of geoip.h when neither version of GeoIP is enabled.

(cherry picked from commit 81fcde595305b6ba7b466fb9a1b2498163b0e912)
lib/dns/include/dns/geoip.h
lib/dns/include/dns/types.h
lib/isccfg/aclconf.c