aboutsummaryrefslogtreecommitdiffstats
path: root/tools/squashfs4/patches/007-Unsquashfs-fix-compilation-error-for-missing-sysctl..patch
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-02-06 23:22:43 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-02-20 07:34:03 +0100
commit30f2d516ba7be08f06f7ca8767472c3ea5678706 (patch)
tree6a76fef0e685764abd5f3ed2df2ebcce7856b219 /tools/squashfs4/patches/007-Unsquashfs-fix-compilation-error-for-missing-sysctl..patch
parent57db2280a2155c39f545ac712766a849cf45f62c (diff)
downloadupstream-30f2d516ba7be08f06f7ca8767472c3ea5678706.tar.gz
upstream-30f2d516ba7be08f06f7ca8767472c3ea5678706.tar.bz2
upstream-30f2d516ba7be08f06f7ca8767472c3ea5678706.zip
tools/squashfs4: add new tool for squashfs4 images
squashfs tool is finally reborn and correctly maintained. Introduce the new version as a replacement for squasfs4kit as it was a fork and also abandoned. Add additional patch to add the missing feature present in squashfskit4 but still missing on this new project. Backport each required patch that fix compilation error on macos. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'tools/squashfs4/patches/007-Unsquashfs-fix-compilation-error-for-missing-sysctl..patch')
-rw-r--r--tools/squashfs4/patches/007-Unsquashfs-fix-compilation-error-for-missing-sysctl..patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/squashfs4/patches/007-Unsquashfs-fix-compilation-error-for-missing-sysctl..patch b/tools/squashfs4/patches/007-Unsquashfs-fix-compilation-error-for-missing-sysctl..patch
new file mode 100644
index 0000000000..b7db00e4cb
--- /dev/null
+++ b/tools/squashfs4/patches/007-Unsquashfs-fix-compilation-error-for-missing-sysctl..patch
@@ -0,0 +1,26 @@
+From dcf492077ef10ed7550b6e2b38b81318645bbdd5 Mon Sep 17 00:00:00 2001
+From: Christian Marangi <ansuelsmth@gmail.com>
+Date: Sun, 19 Feb 2023 04:36:01 +0100
+Subject: [PATCH] Unsquashfs: fix compilation error for missing sysctl.h on
+ macos
+
+Currently the include of sys/sysctl.h is guarded and done only for
+FreeBSD system. Remove this to fix compilation error on macos following
+the same pattern done in mksquashfs.c
+
+Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
+---
+ squashfs-tools/unsquashfs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -36,7 +36,7 @@
+ #include <sched.h>
+ #include <sys/sysinfo.h>
+ #include <sys/sysmacros.h>
+-#elif defined __FreeBSD__
++#else
+ #include <sys/sysctl.h>
+ #endif
+