Added member user for COMSTACK that is an opaque pointer for
[yaz-moved-to-github.git] / src / srwutil.c
index e134758..ae47de9 100644 (file)
@@ -1,14 +1,15 @@
 /*
- * Copyright (c) 2002-2005, Index Data.
+ * Copyright (C) 1995-2005, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: srwutil.c,v 1.22 2005-01-11 10:50:06 adam Exp $
+ * $Id: srwutil.c,v 1.26 2005-01-17 12:53:04 adam Exp $
  */
 /**
  * \file srwutil.c
  * \brief Implements SRW/SRU utilities.
  */
 
+#include <stdlib.h>
 #include <yaz/srw.h>
 #include <yaz/yaz-iconv.h>
 
@@ -252,6 +253,7 @@ int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu,
     {
         char *db = "Default";
         const char *p0 = hreq->path, *p1;
+#if HAVE_XML2
        const char *operation = 0;
        char *version = 0;
        char *query = 0;
@@ -268,6 +270,7 @@ int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu,
        char *maximumTerms = 0;
        char *responsePosition = 0;
        char *extraRequestData = 0;
+#endif
        char **uri_name;
        char **uri_val;