From: Adam Dickmeiss Date: Wed, 30 Apr 2014 13:56:44 +0000 (+0200) Subject: Fix compilation without Libxml2 YAZ-755 revisited X-Git-Tag: v5.1.2~11 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=45fb4747b80f37bfa44738e1071c094f18660ae9;p=yaz-moved-to-github.git Fix compilation without Libxml2 YAZ-755 revisited --- diff --git a/src/zoom-c.c b/src/zoom-c.c index b7bb1fe..f97123d 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1501,7 +1501,6 @@ ZOOM_API(int) return 1; } -#if YAZ_HAVE_XML2 static zoom_ret send_HTTP_redirect(ZOOM_connection c, const char *uri) { @@ -1521,6 +1520,7 @@ static zoom_ret send_HTTP_redirect(ZOOM_connection c, const char *uri) return ZOOM_send_GDU(c, gdu); } + zoom_ret ZOOM_send_GDU(ZOOM_connection c, Z_GDU *gdu) { ZOOM_Event event; @@ -1541,15 +1541,13 @@ zoom_ret ZOOM_send_GDU(ZOOM_connection c, Z_GDU *gdu) return ZOOM_send_buf(c); } -#if YAZ_HAVE_XML2 void ZOOM_set_HTTP_error(ZOOM_connection c, int error, const char *addinfo, const char *addinfo2) { ZOOM_set_dset_error(c, error, "HTTP", addinfo, addinfo2); } -#endif - +#if YAZ_HAVE_XML2 static void handle_http(ZOOM_connection c, Z_HTTP_Response *hres) { zoom_ret cret = zoom_complete;