summaryrefslogtreecommitdiff
path: root/compr_lzo.c
diff options
context:
space:
mode:
Diffstat (limited to 'compr_lzo.c')
-rw-r--r--compr_lzo.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/compr_lzo.c b/compr_lzo.c
index d0f0ed7..d2e2afc 100644
--- a/compr_lzo.c
+++ b/compr_lzo.c
@@ -24,6 +24,8 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
+
+#ifndef WITHOUT_LZO
#include <asm/types.h>
#include <linux/jffs2.h>
#include <lzo/lzo1x.h>
@@ -118,3 +120,16 @@ 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