]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] fix compile bug with json but no xml
authorEvan Hunt <each@isc.org>
Wed, 26 Jun 2013 21:12:27 +0000 (14:12 -0700)
committerEvan Hunt <each@isc.org>
Wed, 26 Jun 2013 21:12:27 +0000 (14:12 -0700)
3604. [bug] Fixed a compile-time error when building with
JSON but not XML. [RT #33959]

CHANGES
lib/isc/task.c

diff --git a/CHANGES b/CHANGES
index 8ad18e7c9f2a078ad990f4153b0031bf3dad308d..b110a07cfb303e4d2a07401b83c5dff7ce4f8047 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3604.  [bug]           Fixed a compile-time error when building with
+                       JSON but not XML. [RT #33959]
+
 3603.  [bug]           Install <isc/stat.h>. [RT #33956]
 
 3602.  [contrib]       Added DLZ Perl module, allowing Perl scripts to
index 2da2d7acf1800c302761ee1edc6438231c1902c3..dbd88a141a218be68a6d5d1b746aeef7af3125c8 100644 (file)
@@ -89,7 +89,7 @@ typedef enum {
        task_state_done
 } task_state_t;
 
-#if defined(HAVE_LIBXML2)
+#if defined(HAVE_LIBXML2) || defined(HAVE_JSON)
 static const char *statenames[] = {
        "idle", "ready", "running", "done",
 };