X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-c.c;h=5acecb1aeec59b224bdcb75bdcab05cdc9da4466;hp=89456b2612c8852a5146ed089628561bee214c67;hb=75c9defe1c9ffb8efe58507dc994a56e6fd0409b;hpb=92b4e042f027d999411ee8c20814cc76e2736e71 diff --git a/src/zoom-c.c b/src/zoom-c.c index 89456b2..5acecb1 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1454,13 +1454,15 @@ static zoom_ret send_srw(ZOOM_connection c, Z_SRW_PDU *sr) } #endif - -static Z_SRW_PDU *ZOOM_srw_get_pdu(ZOOM_connection c, int type) { +#if YAZ_HAVE_XML2 +static Z_SRW_PDU *ZOOM_srw_get_pdu(ZOOM_connection c, int type) +{ Z_SRW_PDU *sr = yaz_srw_get_pdu(c->odr_out, type, c->sru_version); sr->username = c->user; sr->password = c->password; return sr; } +#endif #if YAZ_HAVE_XML2 static zoom_ret ZOOM_connection_srw_send_search(ZOOM_connection c)