Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
[yaz-moved-to-github.git] / test / test_xml_include.c
index 10596cc..5fb436b 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2012 Index Data
  * See the file LICENSE for details.
  */
 #if HAVE_CONFIG_H
@@ -15,6 +15,7 @@
 
 static void tst_xml_include(void)
 {
+#if YAZ_HAVE_XML2
     const char *srcdir = getenv("srcdir");
     xmlDocPtr doc;
     xmlNodePtr node;
@@ -59,6 +60,7 @@ static void tst_xml_include(void)
         }
     }
     xmlFreeDoc(doc);
+#endif
 }