From: Adam Dickmeiss Date: Wed, 14 Jun 2006 05:47:10 +0000 (+0000) Subject: Fix complication for YAZ, when libxml2 is not present. X-Git-Tag: YAZ.2.1.22~6 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=cc078710f81ae60a8922044313b5c4733ac90639 Fix complication for YAZ, when libxml2 is not present. --- diff --git a/src/srwutil.c b/src/srwutil.c index c6e0c8b..841b571 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: srwutil.c,v 1.43 2006-06-05 18:13:01 adam Exp $ + * $Id: srwutil.c,v 1.44 2006-06-14 05:47:10 adam Exp $ */ /** * \file srwutil.c @@ -1207,7 +1207,9 @@ int yaz_sru_soap_encode(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu, ODR odr, const char *charset) { Z_SOAP_Handler handlers[2] = { +#if HAVE_XML2 {"http://www.loc.gov/zing/srw/", 0, (Z_SOAP_fun) yaz_srw_codec}, +#endif {0, 0, 0} }; Z_SOAP *p = (Z_SOAP*) odr_malloc(odr, sizeof(*p));