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
6 Fixes https://github.com/plougher/squashfs-tools/issues/122
8 Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
10 squashfs-tools/reader.c | 1 +
11 squashfs-tools/unsquashfs.c | 5 +++++
12 2 files changed, 6 insertions(+)
14 --- a/squashfs-tools/reader.c
15 +++ b/squashfs-tools/reader.c
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
28 #include "fnmatch_compat.h"
31 #include <sys/sysinfo.h>
32 #include <sys/sysmacros.h>
33 +#elif defined __FreeBSD__
34 +#include <sys/sysctl.h>
37 #include <sys/types.h>
39 #include <sys/resource.h>