aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-23 18:19:00 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-23 18:20:17 +0100
commit12c7c919772b6a1fc818c73c8abc9e2bb694ead9 (patch)
tree2a32d9e51a745c5354f963194648be736f342068 /lib
parent947670d992454033a13c70e36a53a2ac10b3d6ad (diff)
Fix windows build of the thread pool in libsquashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfs/Makemodule.am5
1 files changed, 4 insertions, 1 deletions
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