tools/squashfs4: add new tool for squashfs4 images
[openwrt/openwrt.git] / tools / squashfs4 / patches / 007-Unsquashfs-fix-compilation-error-for-missing-sysctl..patch
1 From dcf492077ef10ed7550b6e2b38b81318645bbdd5 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Sun, 19 Feb 2023 04:36:01 +0100
4 Subject: [PATCH] Unsquashfs: fix compilation error for missing sysctl.h on
5 macos
6
7 Currently the include of sys/sysctl.h is guarded and done only for
8 FreeBSD system. Remove this to fix compilation error on macos following
9 the same pattern done in mksquashfs.c
10
11 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
12 ---
13 squashfs-tools/unsquashfs.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/squashfs-tools/unsquashfs.c
17 +++ b/squashfs-tools/unsquashfs.c
18 @@ -36,7 +36,7 @@
19 #include <sched.h>
20 #include <sys/sysinfo.h>
21 #include <sys/sysmacros.h>
22 -#elif defined __FreeBSD__
23 +#else
24 #include <sys/sysctl.h>
25 #endif
26