summaryrefslogtreecommitdiff
path: root/dev-qt/qt-creator/files/qt-creator-12.0.0-musl-no-malloc-trim.patch
blob: b22f20425129cc72e9e9b9787af18bfaa138d215 (plain)
1
2
3
4
5
6
7
8
malloc_trim() is unavailable with musl
--- a/src/plugins/coreplugin/icore.cpp
+++ b/src/plugins/coreplugin/icore.cpp
@@ -1276,3 +1276,3 @@
         // glibc may not actually free memory in free().
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) && defined(__GLIBC__)
         connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });