xref: /OK3568_Linux_fs/buildroot/package/casync/0001-castore-fix-build-without-lzma-or-xz.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 06b667de02df34e3efa1864b4031853bd4ee010d Mon Sep 17 00:00:00 2001
2From: Yair Ben-Avraham <yairba@protonmail.com>
3Date: Sun, 10 Jan 2021 06:34:58 +0100
4Subject: [PATCH] castore: fix build without lzma or xz
5
6castore.c unconditioanlly includes lzma.h, but lzma support if optional.
7Furthermore, castore.c does not need anything from lzma.h.
8
9Drop the include altogether.
10
11Signed-off-by: Yair Ben-Avraham <yairba@protonmail.com>
12[yann.morin.1998@free.fr:
13  - lzma.h is not needed at all
14  - rewrite commit log accordingly
15]
16Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
17---
18 src/castore.c | 1 -
19 1 file changed, 1 deletion(-)
20
21diff --git a/src/castore.c b/src/castore.c
22index c290dfd..b2e5320 100644
23--- a/src/castore.c
24+++ b/src/castore.c
25@@ -2,7 +2,6 @@
26
27 #include <dirent.h>
28 #include <fcntl.h>
29-#include <lzma.h>
30 #include <sys/stat.h>
31 #include <unistd.h>
32
33--
342.25.1
35
36