#ifdef LIBXML_LZMA_ENABLED
#include <string.h>
-#ifdef HAVE_ERRNO_H
+#include <stdlib.h>
#include <errno.h>
-#endif
-
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
#ifdef LIBXML_ZLIB_ENABLED
#include <zlib.h>
#endif
int flags;
unsigned len;
+ /* Avoid unused variable warning if features are disabled. */
+ (void) flags;
+ (void) len;
+
/* allocate read buffers and inflate memory */
if (state->size == 0) {
/* allocate buffers */
lzma_action action = LZMA_RUN;
+ /* Avoid unused variable warning if features are disabled. */
+ (void) crc;
+ (void) len;
+
/* fill output buffer up to end of deflate stream */
had = strm->avail_out;
do {