X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_xml_include.c;h=5fb436b9ba8894acb14e69e2e6d9e19a2f870e1a;hp=7a289be0e638354c2bd0a554f894822220cffc35;hb=185071b355f704ffe9072b3221eedbda78558dda;hpb=3107ce3a34993d2f784387f227a50343fff83bbc diff --git a/test/test_xml_include.c b/test/test_xml_include.c index 7a289be..5fb436b 100644 --- a/test/test_xml_include.c +++ b/test/test_xml_include.c @@ -1,7 +1,10 @@ /* 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 +#include +#endif #include #include @@ -12,6 +15,7 @@ static void tst_xml_include(void) { +#if YAZ_HAVE_XML2 const char *srcdir = getenv("srcdir"); xmlDocPtr doc; xmlNodePtr node; @@ -56,6 +60,7 @@ static void tst_xml_include(void) } } xmlFreeDoc(doc); +#endif }