]> 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:00:28 +0000 (10:00 -0700)
commit2b8cdc06f9d68c3db34c267d47afaaaf3e8b5db2
treea9baad8da41a53ec3c1561ac8c84ffe4134d6b7e
parentc4565c994d2690e2c626392561ede8989689c3b2
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)
bin/named/server.c
lib/dns/include/dns/geoip.h
lib/dns/include/dns/types.h
lib/isccfg/aclconf.c