From: Adam Dickmeiss Date: Fri, 14 Feb 2003 19:10:00 +0000 (+0000) Subject: Fix non-SOAP compile X-Git-Tag: YAZ.2.0~44 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=854bc0025cf4f8cbd509e2d1de7d2f8a1ea126ac;p=yaz-moved-to-github.git Fix non-SOAP compile --- diff --git a/zutil/zoom-c.c b/zutil/zoom-c.c index 7bad637..d8fab11 100644 --- a/zutil/zoom-c.c +++ b/zutil/zoom-c.c @@ -2,7 +2,7 @@ * Copyright (c) 2000-2003, Index Data * See the file LICENSE for details. * - * $Id: zoom-c.c,v 1.18 2003-02-14 18:49:24 adam Exp $ + * $Id: zoom-c.c,v 1.19 2003-02-14 19:10:00 adam Exp $ * * ZOOM layer for C, connections, result sets, queries. */ @@ -913,6 +913,7 @@ static zoom_ret ZOOM_connection_send_init (ZOOM_connection c) return send_APDU (c, apdu); } +#if HAVE_XSLT static zoom_ret send_srw (ZOOM_connection c, Z_SRW_searchRetrieve *sr) { Z_SOAP_Handler h[2] = { @@ -953,7 +954,9 @@ static zoom_ret send_srw (ZOOM_connection c, Z_SRW_searchRetrieve *sr) odr_reset(c->odr_out); return do_write (c); } +#endif +#if HAVE_XSLT static zoom_ret ZOOM_connection_srw_send_search(ZOOM_connection c) { ZOOM_resultset resultset; @@ -978,6 +981,12 @@ static zoom_ret ZOOM_connection_srw_send_search(ZOOM_connection c) return send_srw(c, sr); } +#else +static zoom_ret ZOOM_connection_srw_send_search(ZOOM_connection c) +{ + return zoom_complete; +} +#endif static zoom_ret ZOOM_connection_send_search (ZOOM_connection c) {