summaryrefslogtreecommitdiff
path: root/jffsX-utils/compr_lzo.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-02-17 21:13:24 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-02-17 21:20:34 +0100
commitab4628e756ab73d8193ed62b591417dad561b298 (patch)
tree5dfcb19495ea82b2ba7b7e427cfefe23c1d8d4f5 /jffsX-utils/compr_lzo.c
parent6fcdc552ffdca93334ffe2d044745c83de0722fa (diff)
Fix optional compilation of lzo compressors
- Simple fixup in autoconf.ac - Make compilation of jffsX-utils compr_lzo.c optional. Simply don't compile it if we built without LZO and remove the place holders. They are not used anyway if we build without LZO. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'jffsX-utils/compr_lzo.c')
-rw-r--r--jffsX-utils/compr_lzo.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/jffsX-utils/compr_lzo.c b/jffsX-utils/compr_lzo.c
index 337ebe9..ddd8d55 100644
--- a/jffsX-utils/compr_lzo.c
+++ b/jffsX-utils/compr_lzo.c
@@ -24,8 +24,6 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
-
-#ifdef WITH_LZO
#include <asm/types.h>
#include <linux/jffs2.h>
#include <lzo/lzo1x.h>
@@ -121,16 +119,3 @@ void jffs2_lzo_exit(void)
free(lzo_compress_buf);
free(lzo_mem);
}
-
-#else
-
-int jffs2_lzo_init(void)
-{
- return 0;
-}
-
-void jffs2_lzo_exit(void)
-{
-}
-
-#endif