aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/Makefile
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@entel.upc.edu>2012-01-31 16:48:06 +0000
committerRoger Pau Monne <roger.pau@entel.upc.edu>2012-01-31 16:48:06 +0000
commitee65792d9386e7eb538dd09674c1c275f2691abb (patch)
tree290984b181271a662155c02478b9f0ff9281f6d5 /tools/libxl/Makefile
parent1a4af67d32b1c39b73e09346203f3e12c00b9e41 (diff)
downloadxen-ee65792d9386e7eb538dd09674c1c275f2691abb.tar.gz
xen-ee65792d9386e7eb538dd09674c1c275f2691abb.tar.bz2
xen-ee65792d9386e7eb538dd09674c1c275f2691abb.zip
libxl: add support for yajl 2.x
This patch adds support for yajl versions 2.x, while retaining 1.x compatibility. All the needed ifdefs can be found in libxl_json.h. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/Makefile')
-rw-r--r--tools/libxl/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
index d0b6fda277..113b7c2e50 100644
--- a/tools/libxl/Makefile
+++ b/tools/libxl/Makefile
@@ -19,6 +19,10 @@ ifeq ($(CONFIG_Linux),y)
LIBUUID_LIBS += -luuid
endif
+ifeq ($(CONFIG_YAJL_VERSION),y)
+CFLAGS += -DHAVE_YAJL_VERSION
+endif
+
LIBXL_LIBS =
LIBXL_LIBS = $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(LDLIBS_libxenstore) $(LDLIBS_libblktapctl) $(UTIL_LIBS) $(LIBUUID_LIBS)