From: Adam Dickmeiss Date: Tue, 29 Apr 2003 21:13:08 +0000 (+0000) Subject: Proper ifdefs for non-libxml2 systems X-Git-Tag: YAZ.2.0.2.RH.2~50 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=ec5e5849731e21b5cf0a5cb3fbe01d9c8c2c8c89 Proper ifdefs for non-libxml2 systems --- diff --git a/client/client.c b/client/client.c index 88109e9..697dc0d 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.187 2003-04-29 21:04:46 adam Exp $ + * $Id: client.c,v 1.188 2003-04-29 21:13:08 adam Exp $ */ #include @@ -2875,6 +2875,7 @@ static void initialize(void) struct timeval tv_start, tv_end; #endif +#if HAVE_XML2 static void handle_srw_response(Z_SRW_searchRetrieveResponse *res) { int i; @@ -2985,6 +2986,7 @@ static void http_response(Z_HTTP_Response *hres) close_session(); } } +#endif void wait_and_handle_response() { @@ -3100,10 +3102,12 @@ void wait_and_handle_response() close_session (); } } +#if HAVE_XML2 else if (gdu->which == Z_GDU_HTTP_Response) { http_response(gdu->u.HTTP_Response); } +#endif if (conn && !cs_more(conn)) break; }