1 From b2f6454a2b2517cfba7a24cf02e9bdf3b959c86a Mon Sep 17 00:00:00 2001
2 From: Tony Butler <spudz76@gmail.com>
3 Date: Sat, 18 Feb 2023 13:20:48 -0800
4 Subject: [PATCH] Move sysinfo.h into the linux-only section, should fix build
7 All compilers set `__linux__`, but `linux` may not be defined, and usage
8 was mixed. Use `__linux__` everywhere instead.
10 Signed-off-by: Tony Butler <spudz76@gmail.com>
12 squashfs-tools/mksquashfs.c | 6 +++---
13 squashfs-tools/unsquashfs.c | 2 +-
14 2 files changed, 4 insertions(+), 4 deletions(-)
16 --- a/squashfs-tools/mksquashfs.c
17 +++ b/squashfs-tools/mksquashfs.c
22 -#include <sys/sysinfo.h>
26 +#include <sys/sysinfo.h>
29 #include <sys/sysctl.h>
30 @@ -5081,7 +5081,7 @@ static void initialise_threads(int readq
31 BAD_ERROR("Failed to set signal mask in intialise_threads\n");
33 if(processors == -1) {
39 --- a/squashfs-tools/unsquashfs.c
40 +++ b/squashfs-tools/unsquashfs.c
41 @@ -2720,7 +2720,7 @@ void initialise_threads(int fragment_buf
44 if(processors == -1) {