X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-sru.c;h=83e162f4b1b511b63df8dbbaca8c530c59241c76;hb=7b1bbfddfb6e9d68c645388e3279a4990a6592ef;hp=bf00f61103969680f12588a35f59f0c9d8400822;hpb=a5795a2df2095d5a44b012a59426e7b906db3ec9;p=yaz-moved-to-github.git diff --git a/src/zoom-sru.c b/src/zoom-sru.c index bf00f61..83e162f 100644 --- a/src/zoom-sru.c +++ b/src/zoom-sru.c @@ -1,11 +1,14 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ /** * \file zoom-sru.c * \brief Implements ZOOM SRU */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -392,6 +395,7 @@ static void handle_srw_scan_response(ZOOM_connection c, int ZOOM_handle_sru(ZOOM_connection c, Z_HTTP_Response *hres, zoom_ret *cret) { +#if YAZ_HAVE_XML2 int ret = 0; const char *addinfo = 0; @@ -446,6 +450,9 @@ int ZOOM_handle_sru(ZOOM_connection c, Z_HTTP_Response *hres, ret = -1; } return ret; +#else + return -1; +#endif } /*