vp-build/srcpkgs/qimgv/patches/fix-musl.patch

14 lines
355 B
Diff

diff --git core.cpp core.cpp
index 26821e3..231ec1a 100644
--- core.cpp
+++ core.cpp
@@ -16,7 +16,7 @@ Core::Core()
scaler(nullptr),
thumbnailer(nullptr)
{
-#ifdef __linux__
+#ifdef __GLIBC__
// default value of 128k causes memory fragmentation issues
// finding this took 3 days of my life
mallopt(M_MMAP_THRESHOLD, 64000);