From: Ian Jackson Subject: Re: [PATCH v3] libxl: add support for yajl 2.x Date: Fri, 27 Jan 2012 19:09:42 +0000 Message-ID: <20258.63094.694795.399684@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Roger Pau Monne Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("[Xen-devel] [PATCH v3] libxl: add support for yajl 2.x"): > 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. Thanks. I'm afraid this needs a refresh: patching file tools/libxl/libxl_json.h Hunk #1 FAILED at 16. 1 out of 1 hunk FAILED -- saving rejects to file tools/libxl/libxl_json.h.rej Also, while you're at it: > +static inline yajl_gen libxl__yajl_gen_alloc(const yajl_alloc_funcs *allocFuncs) > +{ > + return yajl_gen_alloc(allocFuncs); > +} > +#else A couple of blank lines around this #ifs and #elses might be nice. And also I would say #else /* !HAVE_YAJL_V2 */ and #endif /* !HAVE_YAJL_V2 */ (But I would have committed it without those changes if it had applied cleanly.) Thanks, Ian.