]> www.infradead.org Git - mtd-utils.git/commit
Make it possible to compile jffsX-utils without zlib
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Sun, 18 Feb 2024 12:52:42 +0000 (13:52 +0100)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Sun, 18 Feb 2024 12:54:59 +0000 (13:54 +0100)
commit3f73bfb3e09c407425245aa5f62477fd572328c9
tree7f2b7088c24d7029de19ac253432dca11ad3c458
parentab4628e756ab73d8193ed62b591417dad561b298
Make it possible to compile jffsX-utils without zlib

The jffsX-utils already have a CONFIG_JFFS2_ZLIB define, but it is
statically defined in a header and not used consistently. This patch
first replaces it with a "WITH_ZLIB" define, provided via automake,
to bring it in line with the already existing "WITH_LZO". Then, the
missing checks and typedefs are added in jffs2reader.c.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Makefile.am
jffsX-utils/compr.c
jffsX-utils/compr.h
jffsX-utils/jffs2reader.c