forked from Openwrt/openwrt
This new version introduced parallel file reading, which will greatly improve the IO performance. OpenWrt only uses GZIP and XZ compression, hence the LZ4, LZO and ZSTD compression algorithms were explicitly disabled. Upstreamed patches: 001-xz_wrapper-support-multiple-lzma-configuration-optio.patch[1] 002-xz_wrapper-make-new-OpenWrt-extended-options-non-def.patch[2] Release Notes: https://github.com/plougher/squashfs-tools/releases/tag/4.7 [1]dcb976fe4e
[2]5fb9fdfb87
Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/19019 Signed-off-by: Nick Hainke <vincent@systemli.org>
29 lines
846 B
Diff
29 lines
846 B
Diff
From 8931019e6be6e584538ae38978ff68d5b53c96fe Mon Sep 17 00:00:00 2001
|
|
From: Shiji Yang <yangshiji66@outlook.com>
|
|
Date: Wed, 4 Jun 2025 19:53:39 +0800
|
|
Subject: [PATCH] thread: add the missing pthread.h header
|
|
|
|
Fix build error on macos:
|
|
|
|
In file included from mksquashfs_help.c:35:
|
|
./thread.h:46:39: error: unknown type name 'pthread_mutex_t'; did you mean 'pthread_attr_t'?
|
|
46 | extern void wait_thread_idle(int tid, pthread_mutex_t *mutex);
|
|
| ^~~~~~~~~~~~~~~
|
|
| pthread_attr_t
|
|
|
|
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
|
|
---
|
|
squashfs-tools/thread.h | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/squashfs-tools/thread.h
|
|
+++ b/squashfs-tools/thread.h
|
|
@@ -22,6 +22,7 @@
|
|
*
|
|
* thread.h
|
|
*/
|
|
+#include <pthread.h>
|
|
|
|
#define TRUE 1
|
|
#define FALSE 0
|