blob: 58d374fe29b05f29f09e8322cb58129c580635ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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
|