| Index: third_party/libxml/src/xmlIO.c
|
| diff --git a/third_party/libxml/src/xmlIO.c b/third_party/libxml/src/xmlIO.c
|
| index e628ab094c9313d13be0985deca0ab37e408aba4..8b13184aafebcd6335fb7595fd13a10b987a5f44 100644
|
| --- a/third_party/libxml/src/xmlIO.c
|
| +++ b/third_party/libxml/src/xmlIO.c
|
| @@ -1334,7 +1334,7 @@ xmlGzfileClose (void * context) {
|
| }
|
| #endif /* HAVE_ZLIB_H */
|
|
|
| -#ifdef HAVE_LZMA_H
|
| +#ifdef LIBXML_LZMA_ENABLED
|
| /************************************************************************
|
| * *
|
| * I/O for compressed file accesses *
|
| @@ -1451,7 +1451,7 @@ xmlXzfileClose (void * context) {
|
| if (ret < 0) xmlIOErr(0, "xzclose()");
|
| return(ret);
|
| }
|
| -#endif /* HAVE_LZMA_H */
|
| +#endif /* LIBXML_LZMA_ENABLED */
|
|
|
| #ifdef LIBXML_HTTP_ENABLED
|
| /************************************************************************
|
| @@ -2328,10 +2328,10 @@ xmlRegisterDefaultInputCallbacks(void) {
|
| xmlRegisterInputCallbacks(xmlGzfileMatch, xmlGzfileOpen,
|
| xmlGzfileRead, xmlGzfileClose);
|
| #endif /* HAVE_ZLIB_H */
|
| -#ifdef HAVE_LZMA_H
|
| +#ifdef LIBXML_LZMA_ENABLED
|
| xmlRegisterInputCallbacks(xmlXzfileMatch, xmlXzfileOpen,
|
| xmlXzfileRead, xmlXzfileClose);
|
| -#endif /* HAVE_ZLIB_H */
|
| +#endif /* LIBXML_LZMA_ENABLED */
|
|
|
| #ifdef LIBXML_HTTP_ENABLED
|
| xmlRegisterInputCallbacks(xmlIOHTTPMatch, xmlIOHTTPOpen,
|
| @@ -2683,7 +2683,7 @@ __xmlParserInputBufferCreateFilename(const char *URI, xmlCharEncoding enc) {
|
| #endif
|
| }
|
| #endif
|
| -#ifdef HAVE_LZMA_H
|
| +#ifdef LIBXML_LZMA_ENABLED
|
| if ((xmlInputCallbackTable[i].opencallback == xmlXzfileOpen) &&
|
| (strcmp(URI, "-") != 0)) {
|
| ret->compressed = __libxml2_xzcompressed(context);
|
| @@ -3350,7 +3350,7 @@ xmlParserInputBufferGrow(xmlParserInputBufferPtr in, int len) {
|
| * try to establish compressed status of input if not done already
|
| */
|
| if (in->compressed == -1) {
|
| -#ifdef HAVE_LZMA_H
|
| +#ifdef LIBXML_LZMA_ENABLED
|
| if (in->readcallback == xmlXzfileRead)
|
| in->compressed = __libxml2_xzcompressed(in->context);
|
| #endif
|
|
|