Fix compilation for without libxml2
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 12 Aug 2010 08:20:19 +0000 (10:20 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 12 Aug 2010 08:20:19 +0000 (10:20 +0200)
src/marcdisp.c

index 2542806..d9b16c6 100644 (file)
@@ -140,10 +140,12 @@ static void marc_iconv_reset(yaz_marc_t mt, WRBUF wr)
 
 static int marc_exec_leader(const char *leader_spec, char *leader,
                             size_t size);
+#if YAZ_HAVE_XML2
 static int yaz_marc_write_xml_turbo_xml(yaz_marc_t mt, xmlNode **root_ptr,
                                         const char *ns, 
                                         const char *format,
                                         const char *type);
+#endif
 
 static struct yaz_marc_node *yaz_marc_add_node(yaz_marc_t mt)
 {