erofs-utils: lib: Explicitly include <pthread.h> where used
authorSatoshi Niwa <niwa@google.com>
Tue, 8 Oct 2024 06:08:19 +0000 (15:08 +0900)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 9 Oct 2024 03:40:40 +0000 (11:40 +0800)
commit9f5bcf3cb912fb153ec41a4b7c2a01a0eba38269
tree233f309d8e26583989523c29bcebb9c57d0a69ae
parent8bedd862edfbb9a5e54dd37abede29020dd8fdfb
erofs-utils: lib: Explicitly include <pthread.h> where used

compress.c and inode.c use pthread functions but do not explicitly include <pthread.h>.
This causes build failures with the Android build system,
which throws "error: implicit declaration of function pthread_*".

Signed-off-by: Satoshi Niwa <niwa@google.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20241008060819.2442945-1-niwa@google.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
lib/compress.c
lib/inode.c