tools/squashfs4: enable parallel builds
[openwrt/openwrt.git] / tools / squashfs4 / patches / 001-Unsquashfs-Add-and-make-some-header-includes-conditi.patch
1 From a9119c969af0a5aa961d56978d5dd4f3eb952667 Mon Sep 17 00:00:00 2001
2 From: Phillip Lougher <phillip@squashfs.org.uk>
3 Date: Mon, 15 Aug 2022 17:04:43 +0100
4 Subject: [PATCH 1/1] Unsquashfs: Add and make some header includes conditional
5
6 Fixes https://github.com/plougher/squashfs-tools/issues/122
7
8 Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
9 ---
10 squashfs-tools/reader.c | 1 +
11 squashfs-tools/unsquashfs.c | 5 +++++
12 2 files changed, 6 insertions(+)
13
14 --- a/squashfs-tools/reader.c
15 +++ b/squashfs-tools/reader.c
16 @@ -38,6 +38,7 @@
17 #include <errno.h>
18 #include <stdlib.h>
19 #include <stdio.h>
20 +#include <signal.h>
21 #include "squashfs_fs.h"
22 #include "mksquashfs.h"
23 #include "caches-queues-lists.h"
24 --- a/squashfs-tools/unsquashfs.c
25 +++ b/squashfs-tools/unsquashfs.c
26 @@ -32,8 +32,13 @@
27 #include "stdarg.h"
28 #include "fnmatch_compat.h"
29
30 +#ifdef __linux__
31 #include <sys/sysinfo.h>
32 #include <sys/sysmacros.h>
33 +#elif defined __FreeBSD__
34 +#include <sys/sysctl.h>
35 +#endif
36 +
37 #include <sys/types.h>
38 #include <sys/time.h>
39 #include <sys/resource.h>