From ec5e5849731e21b5cf0a5cb3fbe01d9c8c2c8c89 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 29 Apr 2003 21:13:08 +0000 Subject: [PATCH] Proper ifdefs for non-libxml2 systems --- client/client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 1.7.10.4