]> git.ipfire.org Git - thirdparty/bind9.git/commit
Do not require config.h to use isc/util.h
authorPetr Mensik <pemensik@redhat.com>
Fri, 26 Mar 2021 10:01:59 +0000 (11:01 +0100)
committerPetr Menšík <pemensik@redhat.com>
Fri, 26 Mar 2021 10:41:22 +0000 (11:41 +0100)
commit81eb3396bfe6125fe2d6cfb1f7b26508db368af8
treed5a052f71083efcdcb7a8e6b5ae8a88914b0852c
parentf38069cdf8a934d8ebda96b05a544275bce5bd59
Do not require config.h to use isc/util.h

util.h requires ISC_CONSTRUCTOR definition, which depends on config.h
inclusion. It does not include it from isc/util.h (or any other header).
Using isc/util.h fails hard when isc/util.h is used without including
bind's config.h.

Move the check to c file, where ISC_CONSTRUCTOR is used. Ensure config.h
is included there.
lib/isc/include/isc/util.h
lib/isc/lib.c