Fix nanohttp.c build when --without-output The xmlRegisterHTTPPostCallbacks and xmlRegisterDefaultOutputCallbacks are inside "#ifdef LIBXML_OUTPUT_ENABLED" in the xmlIO.h, so we should have the same in the nanohttp.c Fix https://gitlab.gnome.org/GNOME/libxml2/-/issues/1057
diff --git a/nanohttp.c b/nanohttp.c index c87ce44..a7c04de 100644 --- a/nanohttp.c +++ b/nanohttp.c
@@ -294,6 +294,7 @@ return 0; } +#ifdef LIBXML_OUTPUT_ENABLED /** * @deprecated HTTP support was removed in 2.15. */ @@ -301,5 +302,6 @@ xmlRegisterHTTPPostCallbacks(void) { xmlRegisterDefaultOutputCallbacks(); } +#endif #endif /* LIBXML_HTTP_STUBS_ENABLED */