1 diff --git a/src/wfs/wfs_in.c b/src/wfs/wfs_in.c
2 index fe07a0d..7f2557d 100644
5 @@ -76,7 +76,10 @@ Regione Toscana - Settore Sistema Informativo Territoriale ed Ambientale
6 #ifdef ENABLE_LIBXML2 /* LIBXML2 enabled: supporting XML documents */
8 #include <libxml/parser.h>
9 -#include <libxml/nanohttp.h>
11 +#ifdef LIBXML_HTTP_ENABLED
12 + #include <libxml/nanohttp.h>
17 @@ -4637,7 +4640,9 @@ SPATIALITE_DECLARE void
18 reset_wfs_http_connection (void)
20 /* Resets the libxml2 "nano HTTP": useful when changing the HTTP_PROXY settings */
21 +#ifdef LIBXML_HTTP_ENABLED
22 xmlNanoHTTPCleanup ();
26 #else /* LIBXML2 isn't enabled */