at master 26 lines 716 B view raw
1diff --git a/src/wfs/wfs_in.c b/src/wfs/wfs_in.c 2index fe07a0d..7f2557d 100644 3--- a/src/wfs/wfs_in.c 4+++ b/src/wfs/wfs_in.c 5@@ -76,7 +76,10 @@ Regione Toscana - Settore Sistema Informativo Territoriale ed Ambientale 6 #ifdef ENABLE_LIBXML2 /* LIBXML2 enabled: supporting XML documents */ 7 8 #include <libxml/parser.h> 9-#include <libxml/nanohttp.h> 10+ 11+#ifdef LIBXML_HTTP_ENABLED 12+ #include <libxml/nanohttp.h> 13+#endif 14 15 #define MAX_GTYPES 28 16 17@@ -4637,7 +4640,9 @@ SPATIALITE_DECLARE void 18 reset_wfs_http_connection (void) 19 { 20 /* Resets the libxml2 "nano HTTP": useful when changing the HTTP_PROXY settings */ 21+#ifdef LIBXML_HTTP_ENABLED 22 xmlNanoHTTPCleanup (); 23+#endif 24 } 25 26 #else /* LIBXML2 isn't enabled */