{
#endif
-#if defined(HAVE_ZLIB)
-#include <zlib.h>
-#endif
#include <sys/stat.h>
#include "internal.h"
#define EROFS_IOS_DECODER_GZIP 1
#define EROFS_IOS_DECODER_LIBLZMA 2
-#ifdef HAVE_LIBLZMA
-#include <lzma.h>
-struct erofs_iostream_liblzma {
- u8 inbuf[32768];
- lzma_stream strm;
- int fd;
-};
-#endif
+struct erofs_iostream_liblzma;
struct erofs_iostream {
union {
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
-#if defined(HAVE_ZLIB)
-#include <zlib.h>
-#endif
#include "erofs/print.h"
#include "erofs/cache.h"
#include "erofs/diskbuf.h"
#include "erofs/xattr.h"
#include "erofs/blobchunk.h"
#include "erofs/rebuild.h"
+#if defined(HAVE_ZLIB)
+#include <zlib.h>
+#endif
/* This file is a tape/volume header. Ignore it on extraction. */
#define GNUTYPE_VOLHDR 'V'
char padding[12]; /* 500-512 (pad to exactly the 512 byte) */
};
+#ifdef HAVE_LIBLZMA
+#include <lzma.h>
+struct erofs_iostream_liblzma {
+ u8 inbuf[32768];
+ lzma_stream strm;
+ int fd;
+};
+#endif
+
void erofs_iostream_close(struct erofs_iostream *ios)
{
free(ios->buffer);