From 12c7c919772b6a1fc818c73c8abc9e2bb694ead9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 23 Mar 2021 18:19:00 +0100 Subject: Fix windows build of the thread pool in libsquashfs Signed-off-by: David Oberhollenzer --- lib/sqfs/Makemodule.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/sqfs/Makemodule.am b/lib/sqfs/Makemodule.am index 72eb6bc..d6b392e 100644 --- a/lib/sqfs/Makemodule.am +++ b/lib/sqfs/Makemodule.am @@ -53,7 +53,6 @@ endif if WINDOWS libsquashfs_la_SOURCES += lib/sqfs/win32/io_file.c -libsquashfs_la_SOURCES += lib/util/threadpool.c libsquashfs_la_CFLAGS += -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 libsquashfs_la_CFLAGS += -Wc,-static-libgcc libsquashfs_la_LDFLAGS += -no-undefined -avoid-version @@ -64,9 +63,13 @@ endif if HAVE_PTHREAD libsquashfs_la_SOURCES += lib/util/threadpool.c else +if WINDOWS +libsquashfs_la_SOURCES += lib/util/threadpool.c +else libsquashfs_la_SOURCES += lib/util/threadpool_serial.c libsquashfs_la_CPPFLAGS += -DNO_THREAD_IMPL endif +endif if WITH_GZIP libsquashfs_la_SOURCES += lib/sqfs/comp/gzip.c -- cgit v1.2.3