presenterm: 0.9.0 -> 0.10.0 (#378946)
[NixPkgs.git] / pkgs / by-name / li / libspatialite / xmlNanoHTTPCleanup.patch
blob75ec36a0fe54710e55b6ecd5be3be32d515acd87
1 diff --git a/src/wfs/wfs_in.c b/src/wfs/wfs_in.c
2 index 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 */
8 #include <libxml/parser.h>
9 -#include <libxml/nanohttp.h>
11 +#ifdef LIBXML_HTTP_ENABLED
12 + #include <libxml/nanohttp.h>
13 +#endif
15 #define MAX_GTYPES 28
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 ();
23 +#endif
26 #else /* LIBXML2 isn't enabled */