Displaying 1 result from an estimated 1 matches for "a8385a98".
2019 Jan 22
1
[PATCH] fix build failure when CONFIG_KLIBC_ZLIB is not set
...9;
make[2]: *** [usr/kinit/shared/kinit] Error 1
Signed-off-by: Christophe Leroy <christophe.leroy at c-s.fr>
---
usr/kinit/initrd.c | 6 ++++++
usr/kinit/ramdisk_load.c | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/usr/kinit/initrd.c b/usr/kinit/initrd.c
index 7eece2ce..a8385a98 100644
--- a/usr/kinit/initrd.c
+++ b/usr/kinit/initrd.c
@@ -54,11 +54,14 @@ static int rd_copy_image(const char *path)
{
int ffd = open(path, O_RDONLY);
int rv = -1;
+#ifdef CONFIG_KLIBC_ZLIB
unsigned char gzip_magic[2];
+#endif
if (ffd < 0)
goto barf;
+#ifdef CONFIG_KLIBC_ZLIB...