diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-02-18 13:52:42 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-02-18 13:54:59 +0100 |
commit | 3f73bfb3e09c407425245aa5f62477fd572328c9 (patch) | |
tree | 7f2b7088c24d7029de19ac253432dca11ad3c458 /jffsX-utils/compr.h | |
parent | ab4628e756ab73d8193ed62b591417dad561b298 (diff) |
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>
Diffstat (limited to 'jffsX-utils/compr.h')
-rw-r--r-- | jffsX-utils/compr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jffsX-utils/compr.h b/jffsX-utils/compr.h index 0806f4d..f1f5975 100644 --- a/jffsX-utils/compr.h +++ b/jffsX-utils/compr.h @@ -16,7 +16,6 @@ #include <stdint.h> #include "linux/jffs2.h" -#define CONFIG_JFFS2_ZLIB #define CONFIG_JFFS2_RTIME #define JFFS2_RUBINMIPS_PRIORITY 10 @@ -102,7 +101,7 @@ char *jffs2_stats(void); /* Compressor modules */ /* These functions will be called by jffs2_compressors_init/exit */ -#ifdef CONFIG_JFFS2_ZLIB +#ifdef WITH_ZLIB int jffs2_zlib_init(void); void jffs2_zlib_exit(void); #endif |