]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Include <stdlib.h> in lib/dns/dnsrps.c
authorMichał Kępień <michal@isc.org>
Wed, 26 Jun 2019 06:37:31 +0000 (08:37 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 26 Jun 2019 06:45:23 +0000 (08:45 +0200)
Since commit 0771dd3be8bad18f669de978f3be5e08cf2dbd6e, <isc/mem.h> no
longer includes <isc/xml.h>.  On some systems (e.g. FreeBSD), this means
that no header included by lib/dns/dnsrps.c (and no header included by
those headers) contains a definition of free() any more, which triggers
a compiler warning as lib/dns/dnsrps.c calls that function.  Add the
missing #include directive to prevent that warning from being triggered.

lib/dns/dnsrps.c

index f9e2793a29e59220a503d9d82bc2ce33f1396c4c..d9368140e113f9a6aea01da6cc2fe1e24b4a9980 100644 (file)
@@ -16,6 +16,8 @@
 
 #ifdef USE_DNSRPS
 
+#include <stdlib.h>
+
 #include <isc/mem.h>
 #include <isc/string.h>
 #include <isc/util.h>